Full Request / Response Format and documentation can be read here: http://jsonapi.org/format/
POST https://api.eversport.at/v2/venues/1234/orders
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"links": {
"orders.user": {
"type": "users"
}
},
"orders": [{
"start":"2014-07-04T14:00:00+02:00",
"end":"2014-07-04T16:00:00+02:00",
"links": {
"court": "3",
"user": "947184"
}
},
},
{
"start":"2014-07-04T16:00:00+02:00",
"end":"2014-07-04T18:00:00+02:00",
"links": {
"court": "3",
"user": "83932"
}
}
},
{
"start":"2014-07-06T10:00:00+02:00",
"end":"2014-07-06T12:00:00+02:00",
"links": {
"court": "2",
"user": "83932"
}
}
}],
"linked": {
"users": [{
"id":"947184",
"first_name": "Thomas",
"last_name": "Fritz",
"street": "Graumanngasse",
"number": "7",
"zip": "1150",
"city": "Wien",
"country": "AT",
"telephone":"+436643420062",
"email": "[email protected]"
},
{
"id":"83932",
"first_name": "Hanno",
"last_name": "Lippitsch",
"street": "Graumanngasse",
"number": "7",
"zip": "1150",
"city": "Wien",
"country": "AT",
"telephone":"+43664123456789",
"email": "[email protected]"
}]
}
}