Single Site
https://api.activeintime.com/v1/sites/[site_id].json
Will return information on a specific Site for a given Site ID.
Parameters
Parameter | Required | Example | Description |
---|---|---|---|
site_id | Yes | 1 | The ID of a particular Site. |
Response
Object | Always present | Description |
---|---|---|
id | Yes | The ID of the Site. |
name | Yes | The Name of the Site. |
foreign_key | Yes | The CMS Site ID of the Site. Can be blank or null |
tldc_approved | Yes | Whether or not the Site has been validated by TLDC. |
contact | Yes | Contact details for the Site. |
facilities | No | An Array of Facility objects for the Site. |
timetables | No | An Array of Timetable objects for the Site. |
Example
{ "meta": { "X-RateLimit-Limit": 0, "X-RateLimit-Remaining": 0, "status": 200, "api_client": "", "locale": "en-gb" }, "response": { "id": 1, "name": "Test Leisure Centre", "tldc_approved": true, "timezone": null, "foreign_key": "3", "contact": { "address_line_1": "", "address_line_2": "", "post_code": "", "post_town": "London", "country": null, "telephone": null, "website": null, "latitude": "51.52", "longitude": "-0.094814", "twitter": "", "facebook": "", "swimmers_guide_id": null }, "name_translations": { "native": "Zoom Leisure Centre", "western": "Zoom Leisure Centre", "en-gb": "Test Leisure Centre", "zh-cn-hans": "Zoom Leisure Centre", "fr": "Zoom Leisure Centre" }, "facilities": [ { "tldc_approved": true, "id": 147681, "length": null, "primary_name": "Studio 1", "facility_type": { "id": 54, "name": "Airfield" }, "no_of_timetables": 3, "facility_name_aliases": [ { "id": 146681, "name": "Studio 1", "is_primary": true } ] }, { "tldc_approved": true, "id": 147691, "length": null, "primary_name": "Studio 2 ", "facility_type": { "id": 54, "name": "Airfield" }, "no_of_timetables": 2, "facility_name_aliases": [ { "id": 146691, "name": "Studio 2 ", "is_primary": true } ] }, { "tldc_approved": true, "id": 147701, "length": null, "primary_name": "Main Pool", "facility_type": { "id": 54, "name": "Airfield" }, "no_of_timetables": 2, "facility_name_aliases": [ { "id": 146701, "name": "Main Pool", "is_primary": true } ] }, { "tldc_approved": true, "id": 155681, "length": null, "primary_name": "Spin Studio", "facility_type": { "id": 64, "name": "BMX Track" }, "no_of_timetables": 1, "facility_name_aliases": [ { "id": 154851, "name": "Spin Studio", "is_primary": true } ] }, { "tldc_approved": true, "id": 192112, "length": null, "primary_name": "Sports Hall", "facility_type": { "id": 79, "name": "Gymnastics Hall" }, "no_of_timetables": 1, "facility_name_aliases": [ { "id": 191643, "name": "Sports Hall", "is_primary": true } ] }, { "tldc_approved": true, "id": 193682, "length": null, "primary_name": "Learner Pool (20m)", "facility_type": { "id": 79, "name": "Gymnastics Hall" }, "no_of_timetables": 0, "facility_name_aliases": [ { "id": 193237, "name": "Learner Pool (20m)", "is_primary": true }, { "id": 201624, "name": "second name test", "is_primary": false } ] }, { "tldc_approved": true, "id": 196989, "length": null, "primary_name": "Activity Room", "facility_type": { "id": 79, "name": "Gymnastics Hall" }, "no_of_timetables": 1, "facility_name_aliases": [ { "id": 196592, "name": "Activity Room", "is_primary": true } ] }, { "tldc_approved": true, "id": 205971, "length": 10.0, "primary_name": "Outdoor Pool (10.0m)", "facility_type": { "id": 32, "name": "Outdoor Pool" }, "no_of_timetables": 0, "facility_name_aliases": [ { "id": 205793, "name": "Outdoor Pool (10.0m)", "is_primary": true } ] } ], "timetables": [ { "id": 15803, "name": "Wolverton 1-click-to-book test" } ], "management": { "id": 1, "name": "Blue Star Leisure Trust" } } }