[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-1114) If-Then-Else in $batch requests
Ralf Handl created ODATA-1114:
---------------------------------
Summary: If-Then-Else in $batch requests
Key: ODATA-1114
URL: https://issues.oasis-open.org/browse/ODATA-1114
Project: OASIS Open Data Protocol (OData) TC
Issue Type: Improvement
Components: JSON Format
Affects Versions: V4.01_CSD02
Reporter: Ralf Handl
Fix For: V4.01_CS01
Add an If-Then-Else construct to batch requests that allows executing a sequence of requests depending on a condition, typically the HTTP status code of a preceding request
Example 1:
1. Book specific seat for a sports event
2. if booking failed
2.a. book best-match seat for a sports event
endif
Example 2:
1. Modify shopping cart
2. Convert shopping cart to purchase order (bound action)
3. if success
3.a. GET newly created purchase order
else
3.b. GET modified shopping cart
endif
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]