← Prev in month ← Prev in thread

[OASIS Issue Tracker] (ODATA-1114) If-Then-Else in $batch requests

From
OASIS Issues Tracker <>
Date
2017-09-21T07:03:26+00:00
ID
Thread
[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)
← Prev in month ← Prev in thread