Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit e65c73d

Browse files
chgeodimaanj
authored andcommitted
Example for draft choreography
1 parent 730e9d1 commit e65c73d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

fiori/test/requests.http

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,24 @@ GET {{bookshop}}/browse/Books(201)?
4242

4343
#################################################
4444
#
45-
# Orders Service
45+
# Orders Service, incl. draft choreography
4646
#
47+
@newOrderID = e939604c-ab83-4d4f-bdb6-95fe30b3773e
4748

4849
GET {{bookshop}}/orders/Orders
50+
51+
### Create order, still inactive
52+
POST {{bookshop}}/orders/Orders
53+
Content-Type: application/json
54+
55+
{"ID": "{{newOrderID}}"}
56+
57+
### Get inactive order. We have to specify `IsActiveEntity`.
58+
GET {{bookshop}}/orders/Orders(ID={{newOrderID}},IsActiveEntity=false)
59+
60+
### Activate order using `.../<servicename>.draftActivate`
61+
POST {{bookshop}}/orders/Orders(ID={{newOrderID}},IsActiveEntity=false)/OrdersService.draftActivate
62+
Content-Type: application/json
63+
64+
### Get active order
65+
GET {{bookshop}}/orders/Orders(ID={{newOrderID}},IsActiveEntity=true)

0 commit comments

Comments
 (0)