Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 398 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 398 Bytes

Rest-API (JSON) using Express

It would include the following APIs using MVC pattern

Get all users list

  • /users - For Web return HTML
  • api/users - For Mobile applications, return JSON

Post

  • GET/users/1 - Get the user with ID 1

  • POST/users - Create the new user

  • PATCH/users/1 - Edit the user with ID 1

  • DELETE/users/1 - Delete the user with ID 1

  • :id Means dynamic variable