Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions test/requests.http
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ Content-Type: application/json
# Orders Service, incl. draft choreography
#
@newOrderID = e939604c-ab83-4d4f-bdb6-95fe30b3773e

GET {{bookshop}}/odata/v4/orders/Orders

### Create order, still inactive
### Create order, still inactive
### we have to specify `IsActiveEntity` as false when bypass_draft is enabled
### to achieve the previous behavior of creating an inactive order.
POST {{bookshop}}/odata/v4/orders/Orders
Content-Type: application/json

{"ID": "{{newOrderID}}"}
{"ID": "{{newOrderID}}","IsActiveEntity": false}

### Get inactive order. We have to specify `IsActiveEntity`.
GET {{bookshop}}/odata/v4/orders/Orders(ID={{newOrderID}},IsActiveEntity=false)
Expand All @@ -75,6 +74,12 @@ Content-Type: application/json
### Get active order
GET {{bookshop}}/odata/v4/orders/Orders(ID={{newOrderID}},IsActiveEntity=true)

### Delete active order
DELETE {{bookshop}}/odata/v4/orders/Orders(ID={{newOrderID}},IsActiveEntity=true)

### Get active order
GET {{bookshop}}/odata/v4/orders/Orders(ID={{newOrderID}},IsActiveEntity=true)

### Create author
POST {{bookshop}}/admin/Authors
Content-Type: application/json
Expand Down