This API was made to be used with my other project, the Newsletter Register, this was my first ever RESFTful API. Basically both project were developed for study and learning reasons (so maybe I haven't used the best practices for it or even the best way to do the things. So don't get mad with this). Finally if you think there is something I should change, please, push a pull request. I would love to learn more with you :) .
First of all, you need to install Node and MongoDB, so you can take a look on the Node and MongoDB tutorials.
I recommend using Postman to do this.
Put the URL http://localhost:3000/users (depending on your host mapping you'll have to use 127.0.0.1:3000/users) and click on "SEND". You'll receive the response []
Select POST, click on "Body" and "www-form-urlencoded". On the first key field enter "name", on the key field bellow you'll enter "email". On the first value field you can enter a name or whatever word you want, and on the email value you can do the same. Finally click on "SEND". You may see something like this:
[
{
"_id": "5e44128df5577428f9d47934",
"name": "test",
"email": "test@email.com",
"__v": 0
}
]