Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 582 Bytes

File metadata and controls

26 lines (22 loc) · 582 Bytes

Blog's API

URL: https://sarhan-blog.herokuapp.com

User API

GET    '/api/user/:id':  Get User by Id
POST   '/api/user'    :  Add new user
PUT    '/api/user/:id':  Update User by Id
DELETE '/api/user/:id':  Delete User by Id 

Posts API

GET    '/api/posts/'   : Get all Posts
POST   '/api/posts'    : Add new Post
GET    '/api/posts/:id': Get Post by Id
PUT    '/api/posts/:id': Update Post by Id
DELETE '/api/posts/:id': Delete Post by Id

Comments API

POST   '/api/comments'    : Add new Comment
DELETE '/api/comments/:id': Delete Comment by id