GET api/Timetable/{id}
Returns the timetable for the next 7 days for the given club in chronological order
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The Plus2 Site ID (e.g. CLA) |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of TimetableResultDTOName | Description | Type | Additional information |
---|---|---|---|
DateISO |
The date represented in ISO date format (yyyy-mm-dd) |
string |
None. |
Classes |
An array containing all the Group Exercise Classes on this day |
Collection of SurgeClassDataDTO |
None. |
Response Formats
application/json, text/json
Sample:
[ { "DateISO": "2021-01-17", "Classes": [ { "StartDateTimeISO": "2021-01-17 10:00:52", "ClassName": "Exercise Class Name", "InstructorName": "John Smith", "Duration": 60, "Location": "Gym Floor" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfTimetableResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SurgeAPI.Models"> <TimetableResultDTO> <Classes> <SurgeClassDataDTO> <ClassName>Exercise Class Name</ClassName> <Duration>60</Duration> <InstructorName>John Smith</InstructorName> <Location>Gym Floor</Location> <StartDateTimeISO>2021-01-17 10:00:52</StartDateTimeISO> </SurgeClassDataDTO> </Classes> <DateISO>2021-01-17</DateISO> </TimetableResultDTO> </ArrayOfTimetableResultDTO>