openapi.yaml

openapi: 3.0.1
info:
  title: Always Essential Gifts API
  version: '1.0'
servers:
  - url: https://www.alwaysessentialgifts.com
paths:
  /products.json:
    get:
      summary: Get up to 250 products
      responses:
        '200':
          description: A list of products
          content:
            application/json:
              schema:
                type: object
                properties:
                  products:
                    type: array
                    items:
                      $ref: '#/components/schemas/Product'
components:
  schemas:
    Product:
      type: object
      properties:
        id:
          type: integer
        title:
          type: string
        body_html:
          type: string
        vendor:
          type: string
        variants:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              sku:
                type: string
              price:
                type: string
        images:
          type: array
          items:
            type: object
            properties:
              src:
                type: string