Discovery/Index

Манифест API: эндпоинты, схемы DTO (поля + ro/rw), словари значений. Эталонный источник имён полей и enum'ов.

CLI

python limetime.py discovery

HTTP

Запрос

GET /v3/Discovery/Index HTTP/1.1
Host: api.limetime.io
X-Access-Key: 7f3a9b2c1d4e5f60718293a4b5c6d7e8
Accept: application/json

Ответ

HTTP/1.1 200 OK
Content-Type: application/json

{
  "isSuccess": true,
  "message": null,
  "data": {
    "version": "2026.6.3.11207",
    "description": "Limetime API v3 — управление соревнованием",
    "auth": {
      "headers": [
        "X-Access-Key",
        "X-Personal-Access-Key"
      ]
    },
    "conventions": {
      "envelope": "{ isSuccess, data, message }",
      "dateTime": "поля с суффиксом Local/Utc"
    },
    "endpoints": [
      {
        "method": "POST",
        "route": "/v3/Races/List",
        "parameters": [
          {
            "name": "year",
            "type": "int?",
            "required": false
          }
        ]
      },
      {
        "method": "GET",
        "route": "/v3/Races/Details",
        "parameters": [
          {
            "name": "raceGuid",
            "type": "Guid",
            "required": true
          }
        ]
      }
    ],
    "dtos": {
      "raceDto": {
        "fields": [
          {
            "name": "guid",
            "type": "Guid",
            "access": "ro",
            "dictionary": null
          },
          {
            "name": "displayNamePrimary",
            "type": "string",
            "access": "rw",
            "dictionary": null
          },
          {
            "name": "sportTypeId",
            "type": "int",
            "access": "rw",
            "dictionary": "sportType"
          }
        ]
      }
    },
    "dictionaries": {
      "sportType": [
        {
          "id": 10,
          "name": "Акватлон"
        },
        {
          "id": 20,
          "name": "Бег"
        }
      ]
    }
  }
}