-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.http
54 lines (41 loc) · 921 Bytes
/
api.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@base_url=http://localhost:8080
###
GET {{base_url}}/products
###
GET {{base_url}}/product/recommended
###
GET {{base_url}}/product/get/clv2ktl8b0000g1kr9zoqjjl7
###
POST {{base_url}}/products
Content-Type: application/json
{
"title": "HQ Nº1 Amazing Spiderman",
"description": "Spiderman version Nº 1",
"thumb": "https://http2.mlstatic.com/D_NQ_NP_757460-MLB50284638311_062022-O.webp",
"price": 69.93
}
###
GET {{base_url}}/orders
###
GET {{base_url}}/order/clvzp8xoz000010cfcfuuxwho
###
POST {{base_url}}/orders
Content-Type: application/json
{
"price": 69.93,
"quantity": 2,
"product_id": "clvue8q6l0000kgyi81ujmjgv"
}
###
GET {{base_url}}/notifications
Content-Type: application/json
{
"userId": "clvue8q6l0000kgyi81ujmjgv"
}
###
PATCH {{base_url}}/notifications
Content-Type: application/json
{
"userId": "clvue8q6l0000kgyi81ujmjgv",
"notificationId": "clvue8q6l0000kgyi81ujmjgv"
}