openapi: 3.0.3
info:
  title: state-example
  version: 0.0.5-dev
  description: Sample API to play with Apibuilder
servers:
- url: https://mkows.github.io
paths:
  /_internal_/healthcheck:
    get:
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IoGithubMkowsStateExampleV0ModelsHealthcheck'
  /_internal_/healthcheck/test_form_params_json:
    post:
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - param1
              properties:
                param1:
                  type: string
        required: true
      responses:
        '204':
          description: No content
  /_internal_/healthcheck/{id}:
    get:
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IoGithubMkowsStateExampleV0ModelsHealthcheck'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IoGithubMkowsStateExampleV0ModelsError'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: string
        '404':
          description: Not found
components:
  schemas:
    IoGithubMkowsStateExampleV0ModelsError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: string
    IoGithubMkowsStateExampleV0ModelsHealthcheck:
      type: object
      required:
      - status
      properties:
        status:
          example: healthy
          type: string
    IoGithubMkowsStateExampleV0EnumsItemStateFailedCause:
      type: string
      enum:
      - ErrorCause1
      - ErrorCause2
      - ErrorCause3
    IoGithubMkowsStateExampleV0EnumsItemStateProgress:
      type: string
      enum:
      - Init
      - Pending
      - Completed
    IoGithubMkowsStateExampleV0UnionsItemState:
      oneOf:
      - $ref: '#/components/schemas/IoGithubMkowsStateExampleV0EnumsItemStateProgress'
      - $ref: '#/components/schemas/IoGithubMkowsStateExampleV0EnumsItemStateFailedCause'
