Responses
When a request is successful, a response body will typically be sent back in the form of a JSON object.
Inside this JSON object, data will be set as the key. The value of these keys will generally be a JSON object for a request on a single object and an array of objects for a request on a collection of objects.
Response for a single object
{
"data": {
"id": 1234
. . .
}
}
Response to an object collection
{
"data": [
{
"id": 1234
. . .
},
{
"id": 1235
. . .
}]
}
Updated over 1 year ago