curl --request GET \
--url https://api.nuwebgroup.com/v1/venues \
--header 'Authorization: Bearer <token>'{
"data": [
{
"type": "venues",
"id": 1,
"attributes": {
"name": "O2 Arena",
"address": "Peninsula Square",
"city": "London",
"region": "London",
"country": "United Kingdom",
"postcode": "SE10 0DX",
"latitude": "51.503038",
"longitude": "0.0031543",
"capacity": 20000
},
"relationships": {
"cities": {
"data": {
"type": "cities",
"id": 1
}
}
}
}
],
"meta": {
"total": 100
},
"included": [
{
"type": "cities",
"id": 1,
"attributes": {
"name": "London",
"region": "Greater London",
"country": "United Kingdom"
}
}
],
"links": {
"first": "http://api.willms.com/v1/venues?page=1",
"last": "http://api.willms.com/v1/venues?page=5",
"prev": "http://api.willms.com/v1/venues?page=2",
"next": "http://api.willms.com/v1/venues?page=5",
"self": "http://api.willms.com/v1/venues?page=3"
}
}Retrieves a list of venues.
curl --request GET \
--url https://api.nuwebgroup.com/v1/venues \
--header 'Authorization: Bearer <token>'{
"data": [
{
"type": "venues",
"id": 1,
"attributes": {
"name": "O2 Arena",
"address": "Peninsula Square",
"city": "London",
"region": "London",
"country": "United Kingdom",
"postcode": "SE10 0DX",
"latitude": "51.503038",
"longitude": "0.0031543",
"capacity": 20000
},
"relationships": {
"cities": {
"data": {
"type": "cities",
"id": 1
}
}
}
}
],
"meta": {
"total": 100
},
"included": [
{
"type": "cities",
"id": 1,
"attributes": {
"name": "London",
"region": "Greater London",
"country": "United Kingdom"
}
}
],
"links": {
"first": "http://api.willms.com/v1/venues?page=1",
"last": "http://api.willms.com/v1/venues?page=5",
"prev": "http://api.willms.com/v1/venues?page=2",
"next": "http://api.willms.com/v1/venues?page=5",
"self": "http://api.willms.com/v1/venues?page=3"
}
}The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.