API V2.0: Difference between revisions
Jump to navigation
Jump to search
| Line 81: | Line 81: | ||
All POST requests will have a standard response. | All POST requests will have a standard response. | ||
=== Structure === | |||
Responses will be an array containing a number of response items equal to the number of items in the request. | Responses will be an array containing a number of response items equal to the number of items in the request. | ||
Each response item will contain a "success" field, and may contain a "modified", "errors", "warnings" or "info" field (these are not mutually exclusive). | |||
==== Order of response items ==== | |||
The order of the items in the response will correspond to the order that items were sent in the request. | The order of the items in the response will correspond to the order that items were sent in the request. | ||
'''''Example: POST two message for different bookings:''''' | '''''Example: POST two message for different bookings:''''' | ||
[ | [ | ||
| Line 97: | Line 100: | ||
}, | }, | ||
] | ] | ||
'''''Example: response order for the above request:''''' | '''''Example: response order for the above request:''''' | ||
[ | [ | ||
| Line 116: | Line 120: | ||
} | } | ||
] | ] | ||
====The "new" field==== | |||
= Examples = | = Examples = | ||