You can send POST / GET / PUT / DELETE queries (you need to add “Content-Type: application / json in the header of your queries)
http://localhost:3000/arcticles/
http://localhost:3000/arcticles/1
GET | /posts |
GET | /posts/1 |
GET | /posts/1/comments |
GET | /comments?postId=1 |
POST | /posts |
PUT | /posts/1 |
PATCH | /posts/1 |
DELETE | /posts/1 |