openapi: 3.0.3
info:
  title: Gujarati Font Converter API
  version: 1.0.0
  description: Commercial REST API for Gujarati legacy font conversion
servers:
  - url: https://yourdomain.com/api
paths:
  /health:
    get:
      summary: Health check
      responses:
        '200':
          description: OK
  /fonts:
    get:
      summary: List active fonts
      security:
        - ApiKeyAuth: []
      responses:
        '200':
          description: Font list
  /usage:
    get:
      summary: Get API usage stats
      security:
        - ApiKeyAuth: []
      responses:
        '200':
          description: Usage data
  /convert:
    post:
      summary: Convert text between fonts
      security:
        - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: [text, source_font_id, target_font_id]
              properties:
                text:
                  type: string
                source_font_id:
                  type: integer
                target_font_id:
                  type: integer
      responses:
        '200':
          description: Conversion result
        '403':
          description: Limit exceeded
        '429':
          description: Rate limited
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
