{
  "openapi": "3.0.3",
  "info": {
    "title": "WOOBAZ Public API",
    "version": "1.0.0",
    "description": "API publique WOOBAZ v1. Les endpoints proteges utilisent une cle API Bearer."
  },
  "servers": [
    {
      "url": "https://api.woobaz.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/health": {
      "get": {
        "summary": "Etat de disponibilite de l API",
        "responses": {
          "200": {
            "description": "API disponible"
          }
        }
      }
    },
    "/registrations/verify": {
      "post": {
        "summary": "Verifier une immatriculation WOOBAZ",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["registration"],
                "properties": {
                  "registration": {
                    "type": "string",
                    "example": "1234567890ABCDEHNGRA"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Resultat de verification"
          },
          "401": {
            "description": "Cle API absente ou invalide"
          },
          "403": {
            "description": "Scope insuffisant"
          },
          "429": {
            "description": "Quota depasse"
          }
        }
      }
    }
  }
}
