Disciplines

GET /disciplines

Returns a collection of disciplines.

Resource URL

https://api.toornament.com/v1/disciplines

Query Parameters

This endpoint doesn't have any query parameters.

Request Body

This endpoint doesn't require a request body.

Response

[200] Success

Example
[
    {
        "id": "counterstrike_go",
        "name": "Counter-Strike: GO",
        "shortname": "CS:GO",
        "fullname": "Counter-Strike: Global Offensive",
        "copyrights": "Valve Software"
    }
]
Structure (collection)
  • id
    string

    An identifier for a discipline, can be used in others APIs.

    Example: "counterstrike_go"

  • name
    string

    The official name of the discipline.

    Example: "Counter-Strike: GO"

  • shortname
    string

    The short name of the discipline.

    Example: "CS:GO"

  • fullname
    string

    The complete name of the discipline.

    Example: "Counter-Strike: Global Offensive"

  • copyrights
    string

    The name of the publisher of the discipline or any other right related information about the owner of the discipline.

    Example: "Valve Software"

GET /disciplines/{id}

Returns a disciplines with the detail of his features.

Resource URL

https://api.toornament.com/v1/disciplines/{id}

Path parameters

  • id
    string

    The string id of the discipline

Query Parameters

This endpoint doesn't have any query parameters.

Request Body

This endpoint doesn't require a request body.

Response

[200] Success

Example
{
    "id": "cod4",
    "name": "COD4:MW",
    "shortname": "COD4",
    "fullname": "Call of Duty 4 : Modern Warfare",
    "copyrights": "Infinity Ward \/ Activision",
    "team_size": {
        "min": 4,
        "max": 4
    },
    "additional_fields": {
        "field_name": {
            "value": "label"
        }
    }
}
Structure (object)
  • id
    string

    An identifier for a discipline, can be used in others APIs.

    Example: "cod4"

  • name
    string

    The official name of the discipline.

    Example: "COD4:MW"

  • shortname
    string

    The short name of the discipline.

    Example: "COD4"

  • fullname
    string

    The complete name of the discipline.

    Example: "Call of Duty 4 : Modern Warfare"

  • copyrights
    string

    The name of the publisher of the discipline or any other right related information about the owner of the discipline.

    Example: "Infinity Ward / Activision"

  • team_size
    object

    Optional

    Sets the minimum and maximum of players in a team.

  • additional_fields
    object

    Optional

    Note about the special fields in this API: if the field is mentioned, you must use one of the following values