Skip to content

Latest commit

 

History

History
76 lines (61 loc) · 1.52 KB

05-sports.md

File metadata and controls

76 lines (61 loc) · 1.52 KB

Sports

Get a list of sports

curl "https://sportplaces.api.decathlon.com/api/v1/sports"

JSON response:

{
    {
        "id": 186,
        "name": "Diving",
        "tags": [
            "free",
            "outdoor",
            "lessons",
            "space_for_children"
        ],
        "filters": [
            "size",
            "quality"
        ]
    },
    ...
}
This endpoint will be deprecated in the next version of the Sport Places API, in favour of the Sports API * Note the HTTP Header X-Deprecation-Warning on the response.

Retrieves a list of all supported Decathlon sports (as defined by Decathlon), plus the allowed tags and filters for each.

The sports are returned in an object consisting of several key/value groups - the keys of which are the Sport IDs in string format.

HTTP Request

GET https://sportplaces.api.decathlon.com/api/v1/sports

Show details for one sport

curl "https://sportplaces.api.decathlon.com/api/v1/sports/186"

JSON response:

{
    "id": 186,
    "name": "Diving",
    "tags": [
        "free",
        "outdoor",
        "lessons",
        "space_for_children"
    ],
    "filters": [
        "size",
        "quality"
    ]
}

Retrieves details for one specific sport. Included are the English name, and the allowed tags and filters.

HTTP Request

GET https://sportplaces.api.decathlon.com/api/v1/sports/SPORT_ID