Skip to content

KDS-LIMITLESS/CRUD-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZJS

  • A CRUD api built with node.js

API Reference

    https://zjs.herokuapp.com/api/users
  • Get all users

  GET /api/users
Parameter Type Description
null string Gets list of users in database

curl

    curl https://zjs.herokuapp.com/api/users 
  • Create new users

    POST /api/users
Parameter Type Description
null string create a new user

curl

    curl -d '{"name": "value", "email": "value", "country" : "value"}' -H "Content-Ty
    pe: application/json" -X POST https://zjs.herokuapp.com/api/users
  • Update existing user

  PUT /api/users/:email
Parameter Type Description
email string Search for a user with given email
and update user if found.

curl

      curl -d '{"name": "value", "email": "value", "country" : "value"}' -H "Content-Ty
      pe: application/json" -X PUT https://zjs.herokuapp.com/api/users/<email> 
  • Delete user

  DELETE /api/users/:email
Parameter Type Description
email string Deletes a user with given email if found.

curl

  curl -X DELETE https://zjs.herokuapp.com/api/users/<email>

Authors

Licence

  • MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors