> ## Documentation Index
> Fetch the complete documentation index at: https://www.halite-app.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Versions Route

> All distinct versions of one named package, with per-version minion counts.



## OpenAPI

````yaml /api/openapi.json get /api/inventory/packages/{name}/versions
openapi: 3.1.0
info:
  title: Halite
  version: 0.1.0
servers: []
security: []
paths:
  /api/inventory/packages/{name}/versions:
    get:
      tags:
        - inventory
      summary: List Versions Route
      description: >-
        All distinct versions of one named package, with per-version minion
        counts.
      operationId: list_versions_route_api_inventory_packages__name__versions_get
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            title: Name
        - name: source
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Source
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionAggregateOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    VersionAggregateOut:
      properties:
        name:
          type: string
          title: Name
        total:
          type: integer
          title: Total
        items:
          items:
            $ref: '#/components/schemas/VersionAggregate'
          type: array
          title: Items
      type: object
      required:
        - name
        - total
        - items
      title: VersionAggregateOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    VersionAggregate:
      properties:
        version:
          type: string
          title: Version
        arch:
          anyOf:
            - type: string
            - type: 'null'
          title: Arch
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        minion_count:
          type: integer
          title: Minion Count
      type: object
      required:
        - version
        - minion_count
      title: VersionAggregate
      description: One row in the per-package version list.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````