-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi_script_test.http
More file actions
66 lines (55 loc) · 1.74 KB
/
Copy pathapi_script_test.http
File metadata and controls
66 lines (55 loc) · 1.74 KB
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
66
@jwt_token = Bearer eyJhbGciOiJIUzM4NCJ9.eyJzdWIiOiIxOCIsInJvbGUiOiJNQVNURVIiLCJpc3MiOiJhdXRoLXNlcnZpY2UiLCJpYXQiOjE3MjY3NjU0NTMsImV4cCI6MTcyNjc2OTA1M30.7ApPYk5Uep9ycF4sz3HJkIdHDUFeX4AfBtBux4vJG0NVeuwSMH7HeBqUG9voInGr
@deliveryRouteId = c4d6c8a7-6fd1-4693-9266-a7988af6fa4b
### POST 마스터 로그인
POST http://localhost:19092/api/v1/auth/login
Content-Type: application/json
{
"email": "user18@user.com",
"password": "Password18!"
}
### 주문 등록 - 1
POST http://localhost:19092/api/v1/orders
Content-Type: application/json
Authorization:{{jwt_token}}
{
"supplierId": "123e4567-e89b-12d3-a456-426614174000",
"receiverId": "123e4567-e89b-12d3-a456-426614174007",
"product_items": [
{
"product_id": "55014eb0-c1ad-4036-8100-fdadc8e0a91b",
"product_price": 20000.00,
"order_amount": 1
}
]
}
### 주문 등록 - 2
POST http://localhost:19092/api/v1/orders
Content-Type: application/json
Authorization:{{jwt_token}}
{
"supplierId": "123e4567-e89b-12d3-a456-426614174006",
"receiverId": "123e4567-e89b-12d3-a456-426614174033",
"product_items": [
{
"product_id": "56389e65-68f4-433a-ab66-0ed065a4b6e8",
"product_price": 19000.00,
"order_amount": 1
}
]
}
### 주문 조회
GET http://localhost:19092/api/v1/orders
Content-Type: application/json
Authorization:{{jwt_token}}
#### 배송 조회
GET http://localhost:19092/api/v1/deliveries
Content-Type: application/json
Authorization:{{jwt_token}}
#### 배송 경로 조회
GET http://localhost:19092/api/v1/delivery-routes/{{deliveryRouteId}}
Content-Type: application/json
Authorization: {{jwt_token}}
#### 날씨 데이터 슬랙 전송
GET http://localhost:19092/api/v1/ai/weather
Content-Type: application/json
Authorization: {{jwt_token}}