diff --git a/test/requests.http b/test/requests.http index ad50fbc..82f75d0 100644 --- a/test/requests.http +++ b/test/requests.http @@ -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) @@ -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