All custom endpoints made for the Page / Play integration are served under api/sp/...
...
Seasons
Code Block [ { "seasonId": "2024-25", "name": "2024-25", "externalId": "daa35de9-a983-11ee-bfcd-02d1437f326a", "firstGameDate": "2024-04-13", "lastGameDate": "2024-09-28", "isCurrent": true }, { "seasonId": "2023-24", "name": "2023-24", "externalId": "56a3ed23-96b0-11ed-aabf-026841454e5e", "firstGameDate": "2023-05-03", "lastGameDate": "2024-04-24", "isCurrent": false }, { "seasonId": "2022-23", "name": "2022-23", "externalId": null, "firstGameDate": null, "lastGameDate": null, "isCurrent": false }, { "seasonId": "2021-22", "name": "2021-22", "externalId": null, "firstGameDate": null, "lastGameDate": null, "isCurrent": false }, { "seasonId": "2020-21", "name": "2020-21", "externalId": null, "firstGameDate": null, "lastGameDate": null, "isCurrent": false }, { "seasonId": "2019-20", "name": "2019-20", "externalId": null, "firstGameDate": null, "lastGameDate": null, "isCurrent": false }, { "seasonId": "2018-19", "name": "2018-19", "externalId": null, "firstGameDate": null, "lastGameDate": null, "isCurrent": false } ]
Events (Work in progress)
GET api/sp/events
or GET api/sp/calendar
...
A practice record has an array of teams as opposed to 2 teams and can have no teams. (teamIds: []
)
This is how they are displayed in Play currently:
...
Activities: All activities within the office.
Activities are always linked to a team. (teamId: 1
). The location of an activity is free flow text, not an address, ex. “Gymnase école secondaire Des Chutes”. An activity can have one of these 4 types: Training
, Meeting
, Meal
, Accomodation
. We do not have i18n set up for this resource, meaning the location or name they put in will show up in the language they wrote it in.
This is how they are displayed in Play currently:
...
All types of events can have one of the following status: Active
Cancelled
, Conflict
, Postponed
, Rescheduled
, Rink Changed
Questions:
For, let say, an association, would you want to see games from a tournament that is outside the association but teams from the association are participating?
Is the calendar going to be shown just at the office level or is it also going to be shown at the schedule level?
Is there information in the response we might not need?
Any other parameters we might need?
Accepts
officeId or scheduleId (required)
startDate
endDate
...