openapi: 3.0.3
info:
  title: Repzo API - Inventory
  version: 1.0.0
  description: OpenAPI specification for Repzo Inventory endpoints.
servers:
  - url: https://sv.api.repzo.me
paths:
  /inventory:
    get:
      summary: Find inventory items
      operationId: findInventory
      parameters:
        - in: query
          name: params
          schema:
            type: object
          description: Query parameters for filtering inventory items
      responses:
        "200":
          description: A list of inventory items
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InventoryFindResult"
components:
  schemas:
    InventoryFindResult:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/Inventory"
        meta:
          type: object
    Inventory:
      type: object
      properties:
        _id:
          type: string
        product:
          type: string
        variant:
          type: string
        warehouse:
          type: string
        quantity:
          type: number
        reservedQuantity:
          type: number
        availableQuantity:
          type: number
        cost:
          type: number
        lastUpdated:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
