API V2.0: Difference between revisions
Jump to navigation
Jump to search
| Line 79: | Line 79: | ||
== Responses == | == Responses == | ||
All POST requests will have a standard response. | |||
Responses will be an array containing a number of response items equal to the number of items 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:''''' | |||
[ | |||
{ | |||
"bookingId": 1111111, | |||
"message": "a message" | |||
}, | |||
{ | |||
"bookingId": 2222222, | |||
"message": "a different message" | |||
}, | |||
] | |||
'''''Example: response order for the above request:''''' | |||
[ | |||
{ | |||
"success": true, | |||
"info": [ | |||
{ | |||
"message": "information about the message for booking 1111111" | |||
} | |||
] | |||
}, | |||
{ | |||
"success": false, | |||
"errors": [ | |||
{ | |||
"message": "an error about the message for booking 2222222" | |||
} | |||
] | |||
} | |||
] | |||
= Examples = | = Examples = | ||