All custom endpoints made for the Page / Play integration are served under api/sp/...
Schedules
GET api/sp/schedules
Returns all schedules that have at least one team or at least one game based off an office, season and category (optional).
For an office which have a game office type (League
, Tournament
, or Cup
), only schedules that are directly under the office are queried. For all other types of office, it returns all schedules that have teams under the office and the effective offices (excluding office members).
Accepts
officeId (required)
seasonId (required)
categoryId (optional)
Returns
Schedules
Categories
GET api/sp/categories
Returns all categories that contain schedules with at least one team or at least one game based off an office and season.
For an office which have a game office type (League
, Tournament
, or Cup
), only schedules that are directly under the office are queried. For all other types of office, it returns all schedules that have teams under the office and the effective offices (excluding office members).
Accepts
officeId
seasonId
Returns
Categories, includes Class and Division