openapi: 3.0.1
info:
  title: Franco 2x1 Restaurant API
  description: Menu, pricing, and ordering information for Franco 2x1 restaurant
  version: 1.0.0
  contact:
    name: Franco 2x1
    url: https://franco2x1.cl
servers:
  - url: https://franco2x1.cl
paths:
  /menu.json:
    get:
      operationId: getMenu
      summary: Get complete restaurant menu with prices
      description: Returns the full menu with all items, prices, and restaurant information
      responses:
        "200":
          description: Complete menu data
          content:
            application/json:
              schema:
                type: object
                properties:
                  restaurant:
                    type: object
                    properties:
                      name:
                        type: string
                        description: Restaurant name
                      description:
                        type: string
                        description: Restaurant description
                      address:
                        type: object
                        properties:
                          street:
                            type: string
                          locality:
                            type: string
                          region:
                            type: string
                          country:
                            type: string
                      contact:
                        type: object
                        properties:
                          phones:
                            type: array
                            items:
                              type: string
                          whatsapp:
                            type: string
                      hours:
                        type: object
                        properties:
                          monday_to_sunday:
                            type: string
                  menu:
                    type: object
                    description: Menu sections with items and prices
                    additionalProperties:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                          description:
                            type: string
                          price:
                            type: integer
                            description: Price in Chilean pesos
                          currency:
                            type: string
                            enum: ["CLP"]
                  actions:
                    type: object
                    properties:
                      order_whatsapp:
                        type: string
                        format: uri
                        description: WhatsApp ordering link
                      call_landline:
                        type: string
                        format: uri
                      call_mobile:
                        type: string
                        format: uri
components:
  schemas:
    MenuItem:
      type: object
      properties:
        name:
          type: string
          description: Item name
        description:
          type: string
          description: Item description
        price:
          type: integer
          description: Price in Chilean pesos (CLP)
        currency:
          type: string
          enum: ["CLP"]
      required:
        - name
        - price
        - currency