{
  "openapi": "3.1.0",
  "info": {
    "title": "Martakolor Color Analysis API",
    "version": "1.0.0",
    "description": "Otwarta specyfikacja taksonomii 12 typów urody i algorytmu diagnostycznego martakolor.pl. Wszystkie endpointy są statyczne (JSON), serwowane bezpośrednio z CDN. Licencja CC BY 4.0 — wymagana atrybucja martakolor.pl.",
    "contact": {
      "name": "Marta Perlińska",
      "url": "https://martakolor.pl"
    },
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://martakolor.pl/api/v1"
    }
  ],
  "paths": {
    "/types.json": {
      "get": {
        "summary": "Lista 12 typów urody (indeks)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/types/{slug}.json": {
      "get": {
        "summary": "Pełny profil typu urody",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "polski slug, np. wiosna-jasna"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/quiz/schema.json": {
      "get": {
        "summary": "Pełna specyfikacja quizu (15 pytań, scoring)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/quiz/algorithm.json": {
      "get": {
        "summary": "Mapowanie 3-osi → typ",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}