-
Notifications
You must be signed in to change notification settings - Fork 0
Season Service
Matthew Pfister edited this page Apr 17, 2020
·
2 revisions
POST Season
PUT Season
GET All Seasons
GET Season
DELETE Season
Request Body
{
endedOn?: string;
isActive: boolean;
players: string[];
set: string;
startedOn: string;
}
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
endedOn?: string;
id: string;
isActive: boolean;
startedOn: string;
}
}
Request Body
{
endedOn?: string;
isActive?: boolean;
players?: string[];
set?: string;
startedOn?: string;
}
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
endedOn?: string;
id: string;
isActive: boolean;
startedOn: string;
}
}
Query Parameters
For more information on how to use queries with this endpoint, see our service query FAQ page in the wiki.
| Parameter | Data type | Examples |
|---|---|---|
| active | boolean | ?active=false |
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: [
{
endedOn?: string;
id: string;
isActive: boolean;
startedOn: string;
},
...
]
}
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
endedOn?: string;
id: string;
isActive: boolean;
startedOn: string;
}
}
Request Headers
{
Authorization: Bearer Identity Token;
}
Response Body
{
status: number;
data: {
message: string;
}
}