-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecution-steps-complete-flow.txt
More file actions
45 lines (38 loc) · 998 Bytes
/
execution-steps-complete-flow.txt
File metadata and controls
45 lines (38 loc) · 998 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
Start Complete Order-Orchestrator Service:
1. Start Order-Service
2. Start Payment-Service
3. Start Inventory-Service
4. Start Order-Orchestrator
API testing:
1. Open Postman
2. Fire below command for testing create order and orderList
curl --location --request POST 'http://localhost:8080/order/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId" : 1,
"productId" : 3
}'
Response:
{
"id": "3a0b1c5e-00fa-4660-88cc-7dfae625082f",
"userId": 1,
"productId": 3,
"price": 300.0,
"status": "ORDER_CREATED"
}
===================================================================================================
curl --location --request GET 'http://localhost:8080/order/all' \
--header 'Content-Type: application/json' \
--data-raw '{
"name" : "us"
}'
Response:
[
{
"orderId": "3a0b1c5e-00fa-4660-88cc-7dfae625082f",
"userId": 1,
"productId": 3,
"amount": 300.0,
"status": "ORDER_COMPLETED"
}
]