Documentation - Blog API - v0.1
Routes
- Users
- Posts
User endpoints:
TYPE | PATH | DESCRIPTION |
---|---|---|
POST | /users | Create a new user |
GET | /users | Get all users |
GET | /users/{:id} | Get a user by id |
GET | /users/{:id}/posts | Get all posts of a user |
PATCH | /users/{:id} | Update a user by id |
DELETE | /users/{:id} | Delete a user by id |
Post endpoints:
TYPE | PATH | DESCRIPTION |
---|---|---|
POST | /posts | Create a new post |
GET | /posts | Get all posts |
GET | /posts/{:id} | Get a post by id |
PATCH | /posts/{:id} | Update a post by id |
DELETE | /posts/{:id} | Delete a post by id |