-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathrest.http
More file actions
65 lines (22 loc) · 629 Bytes
/
rest.http
File metadata and controls
65 lines (22 loc) · 629 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
###Get a list of all products
GET http://localhost:3000/products
### Create a product
POST http://localhost:3000/products
Content-Type: application/json
{
"name": "iMac Pro",
"price": 4999
}
### GET a product by id
GET http://localhost:3000/products/5df118b3c86e5826958b661a
### Update a product by id
PATCH http://localhost:3000/products/5df118b3c86e5826958b661a
Content-Type: application/json
{
"price": 5999
}
### Delete a product by id
DELETE http://localhost:3000/products/5df118b3c86e5826958b661a
### 404 route Not Found
GET http://localhost:3000/abc_xyz
#hrXWgw4Q127uqZJ3