Skip to content

Latest commit

 

History

History
74 lines (34 loc) · 576 Bytes

03feb.md

File metadata and controls

74 lines (34 loc) · 576 Bytes

RestFul Service

CREATE USER

We use Post method to create a user

POST /users

RETRIVE USER

We use Get method to retrieve the user.

  • To retrieve all the users
Get /users
  • To retrieve a single user
Get/ users/1

Delete a user

we use Delete method to delete the user.

Delete /user/ (id)

POST FOR A USER

POST/ user/{id}/posts

RETRIEVE ALL POST OF A USER

Get/ user/{id}/posts

RETRIEVE DETAILS OF A POST

Get  /user/ {id}/posts/{post_id}