{
  "openapi": "3.1.0",
  "info": {
    "title": "Syntetická ukázka API 0.9.0",
    "version": "0.9.0",
    "description": "NÁVRH — smyšlený kontrakt pro výuku a testování DOCS. Na ukázkové doméně neexistuje služba.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://api.example.invalid",
      "description": "Vyhrazená ukázková doména; žádné živé API"
    }
  ],
  "paths": {
    "/samples/{id}": {
      "get": {
        "operationId": "sampleRead",
        "summary": "Načíst syntetický vzorek",
        "description": "Ilustrační operace pouze ke čtení. Token EXAMPLE_TOKEN_DO_NOT_USE je syntetický.",
        "x-docs-classification": "PUBLIC",
        "deprecated": true,
        "x-deprecation-date": "2026-10-05",
        "x-removal-date": "2027-04-05",
        "x-replacement-operation": "sampleRead (API 1.0.0)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Syntetický identifikátor",
            "schema": {
              "type": "string"
            },
            "example": "synthetic-1"
          }
        ],
        "responses": {
          "200": {
            "description": "Syntetický vzorek",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sample"
                },
                "example": {
                  "id": "synthetic-1",
                  "label": "Ukázka"
                }
              }
            }
          },
          "401": {
            "description": "Chybějící nebo neplatný token"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Sample": {
        "type": "object",
        "x-docs-classification": "PUBLIC",
        "required": [
          "id",
          "label"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "exampleBearer": {
        "type": "http",
        "scheme": "bearer",
        "x-docs-classification": "PUBLIC",
        "description": "Pouze syntetický token"
      }
    }
  },
  "x-docs-classification": "PUBLIC",
  "x-docs-lifecycle": "draft",
  "security": [
    {
      "exampleBearer": []
    }
  ]
}
