openapi: 3.0.1
info:
  title: Facets
  version: "1.0"
paths:
  /facet/values:
    get:
      tags:
        - Facets
      parameters:
        - name: facetId
          in: query
          required: true
          schema:
            type: string
        - name: Accept-Language
          in: header
          required: true
          schema:
            type: string
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/FacetOption"
      operationId: getFacetValues
      summary: Get facet values
components:
  schemas:
    FacetOption:
      required:
        - facetKey
        - facetValue
      type: object
      properties:
        facetKey:
          minLength: 1
          type: string
        facetValue:
          minLength: 1
          type: string
      additionalProperties: false
servers:
  - url: "{baseUrl}"
    description: Your Storefront API host
    variables:
      baseUrl:
        default: https://your-storefront-api-host
        description: The Storefront API base URL for your store. Your Stadion technical
          contact provides it.
