Prospect-Stats API Documentation

GET /api/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "info": [
        "Reference the 'next' and 'previous' url's given in the response to navigate list pages"
    ],
    "endpoints": [
        {
            "description": "List of API endpoints",
            "url_style": "http://prospect-stats.com/api/",
            "example_url": "http://prospect-stats.com/api/"
        },
        {
            "description": "List of games",
            "url_style": "http://prospect-stats.com/api/game",
            "example_url": "http://prospect-stats.com/api/game"
        },
        {
            "description": "Detail of the game with the given id",
            "url_style": "http://prospect-stats.com/api/game/id",
            "parameters": {
                "id": "ID of the game. Example: '10626'"
            },
            "example_url": "http://prospect-stats.com/api/game/10626"
        },
        {
            "description": "List of leagues",
            "url_style": "http://prospect-stats.com/api/league",
            "example_url": "http://prospect-stats.com/api/league"
        },
        {
            "description": "Detail of the league with the given abbreviation and season string",
            "url_style": "http://prospect-stats.com/api/league/abbrev/year_str",
            "parameters": {
                "year_str": "String representation of the league's season. Example: '2017-18'",
                "abbrev": "Abbreviation of the league. Example: 'OHL'"
            },
            "example_url": "http://prospect-stats.com/api/league/OHL/2017-18"
        },
        {
            "description": "List of people",
            "url_style": "http://prospect-stats.com/api/player",
            "example_url": "http://prospect-stats.com/api/player"
        },
        {
            "description": "Detail of the person with the given id, including urls for their season records",
            "url_style": "http://prospect-stats.com/api/player/id",
            "parameters": {
                "id": "ID of the person. Example: '14949'"
            },
            "example_url": "http://prospect-stats.com/api/player/14949"
        },
        {
            "description": "Detail of the player's season for the given ID, league abbreviation and season string",
            "url_style": "http://prospect-stats.com/api/player/id/abbrev/year_str",
            "parameters": {
                "year_str": "String representation of the league's season. Example: '2014-15'",
                "id": "ID of the person. Example: '14949'",
                "abbrev": "Abbreviation of the league. Example: 'OHL'"
            },
            "example_url": "http://prospect-stats.com/api/player/14949/OHL/2014-15"
        },
        {
            "description": "List of teams",
            "url_style": "http://prospect-stats.com/api/team",
            "example_url": "http://prospect-stats.com/api/team"
        },
        {
            "description": "Detail of the team with the given slug and season string",
            "url_style": "http://prospect-stats.com/api/team/slug/year_str",
            "parameters": {
                "slug": "Team's name as a slug. Example: 'mississauga-steelheads'",
                "year_str": "String representation of the league's season. Example: '2017-18'"
            },
            "example_url": "http://prospect-stats.com/api/team/mississauga-steelheads/2017-18"
        }
    ]
}