GET exportserviceorg/sports?includeSubsports={includeSubsports}
Returns available sports.
A sport can have underlying subsports.
Request Information
Request URL
https://api.idrottonline.se/exportserviceorg/sports?includeSubsports={includeSubsports}URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| includeSubsports |
Set to false to exlude subsports |
boolean |
Default value is True |
| x-svenskidrott-api-version |
The requested API version |
string |
Required Default value is 2.0 |
| api-version |
The requested API version |
string |
Default value is 2.0 |
Body Parameters
None.
Response Information
Resource Description
A list of sports.
Collection of ExportService.DataContracts.Sport| Name | Description | Type | Additional information |
|---|---|---|---|
| SubSports |
SubSports |
Collection of ExportService.DataContracts.SubSport |
None. |
| SportId |
The id of the sport |
integer |
None. |
| Name |
The name of the sport |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"SubSports": [
{
"SportId": 1,
"Name": "sample string 2"
},
{
"SportId": 1,
"Name": "sample string 2"
}
],
"SportId": 1,
"Name": "sample string 2"
},
{
"SubSports": [
{
"SportId": 1,
"Name": "sample string 2"
},
{
"SportId": 1,
"Name": "sample string 2"
}
],
"SportId": 1,
"Name": "sample string 2"
}
]