- A CRUD api built with node.js
https://zjs.herokuapp.com/api/users
| Parameter |
Type |
Description |
| null |
string |
Gets list of users in database |
curl https://zjs.herokuapp.com/api/users
| Parameter |
Type |
Description |
| null |
string |
create a new user |
curl -d '{"name": "value", "email": "value", "country" : "value"}' -H "Content-Ty
pe: application/json" -X POST https://zjs.herokuapp.com/api/users
| Parameter |
Type |
Description |
| email |
string |
Search for a user with given email |
|
|
and update user if found. |
curl -d '{"name": "value", "email": "value", "country" : "value"}' -H "Content-Ty
pe: application/json" -X PUT https://zjs.herokuapp.com/api/users/<email>
| Parameter |
Type |
Description |
| email |
string |
Deletes a user with given email if found. |
curl -X DELETE https://zjs.herokuapp.com/api/users/<email>