Skip to content

Latest commit

 

History

History
75 lines (68 loc) · 1.3 KB

CleanArchitectureTemplate.rest

File metadata and controls

75 lines (68 loc) · 1.3 KB

@url = https://localhost:5001

### GET {{url}} # ---#if(!noSampleCode) ### Create order. # @name create_order POST {{url}}/orders Content-Type: application/json

{

"buyerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ShippingAddress": {

"city": "New York", "street": "20 W 34th St", "province": "New York", "country": "United States", "zipCode": "NY 10001"

}, "items": [

{
"name": "Ice creams", "quantity": 2, "unitPrice": 1.80

}, {

"name": "Coffee", "quantity": 1, "unitPrice": 3.00

}, {

"name": "Apple pie", "quantity": 1, "unitPrice": 5.49

}

]

}

### @orderId = {{create_order.response.body.$}}

### Get order by ID. GET {{url}}/orders/{{orderId}}

### Get list of orders. GET {{url}}/orders

### Update a signle order. PUT {{url}}/orders/{{orderId}} Content-Type: application/json

{

"buyerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "ShippingAddress": {

"city": "New York", "street": "20 W 34th St", "province": "New York", "country": "United States", "zipCode": "NY 10001"

}, "items": [

{
"name": "Coffee", "quantity": 2, "unitPrice": 3.00

}, {

"name": "Apple pie", "quantity": 2, "unitPrice": 5.49

}

], "status": "Pending"

} # ---#endif