-
Notifications
You must be signed in to change notification settings - Fork 0
Description
{{API_URI}}/events?include=venue,ticketClasses
One relationship has “event” as a key-value pair and the other has “events”.
"included": [
{
"id": "1",
"type": "venues",
"links": {
"self": "http://localhost:3000/venues/1"
},
"attributes": {
"createdAt": "2020-05-06T13:27:57.602Z",
"updatedAt": "2020-05-06T13:27:57.602Z",
"name": null,
"ageRestriction": null,
"capacity": null,
"address": {
"street": "260 1st St. S.",
"street2": "#200",
"city": "St. Petersburg",
"state": "FL",
"zip": 33701
}
},
"relationships": {
"events": {
"data": [
{
"type": "events",
"id": "1"
}
]
}
}
},
{
"id": "1",
"type": "ticketClasses",
"links": {
"self": "http://localhost:3000/ticket-classes/1"
},
"attributes": {
"createdAt": "2020-05-06T13:27:58.757Z",
"updatedAt": "2020-05-06T13:27:58.757Z",
"name": "Members",
"description": null,
"sorting": null,
"capacity": null,
"salesStart": null,
"salesEnd": null,
"orderConfirmationMessage": null,
"eventId": 1,
"price": {
"currency": "USD",
"value": 0,
"display": "$0.00"
}
},
"relationships": {
"event": {
"data": {
"type": "events",
"id": "1"
}
}
}
},