-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-spec.http
35 lines (24 loc) · 943 Bytes
/
api-spec.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
### Get posts
GET http://localhost:3000/api/posts
### Get Posts
GET http://localhost:3000/api/posts/1
### Create Posts
POST http://localhost:3000/api/posts
Content-Type: application/json
{
"userId": 1,
"id": 0,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
}
### Update Posts
PUT http://localhost:3000/api/posts/1
Content-Type: application/json
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
}
### Delete Posts
DELETE http://localhost:3000/api/posts/1