openapi: 3.0.3
info:
  title: playground-api
  version: 0.0.4-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/IoGithubMkowsPlaygroundApiV0ModelsHealthcheck'
  /_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/IoGithubMkowsPlaygroundApiV0ModelsHealthcheck'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IoGithubMkowsPlaygroundApiV0ModelsError'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: string
        '404':
          description: Not found
components:
  schemas:
    IoGithubMkowsPlaygroundApiV0ModelsError:
      type: object
      required:
      - code
      - message
      - message_code
      - message_lengthy
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
          maxLength: 12
        message_code:
          type: string
          maxLength: 2
          minLength: 2
        message_lengthy:
          type: string
          minLength: 30
        details:
          type: string
    IoGithubMkowsPlaygroundApiV0ModelsHealthcheck:
      type: object
      required:
      - status
      - created_at
      properties:
        status:
          example: healthy
          type: string
          minLength: 3
        created_at:
          example: '2014-04-29T11:56:52Z'
          type: string
          format: date-time
    IoGithubMkowsPlaygroundApiV0EnumsItemStateProgress:
      type: string
      enum:
      - Init
      - Pending
      - Completed
    IoGithubMkowsPlaygroundApiV0EnumsItemStateFailedCause:
      type: string
      enum:
      - ErrorCause1
      - ErrorCause2
      - ErrorCause3
    IoGithubMkowsPlaygroundApiV0UnionsItemState:
      oneOf:
      - $ref: '#/components/schemas/IoGithubMkowsPlaygroundApiV0EnumsItemStateProgress'
      - $ref: '#/components/schemas/IoGithubMkowsPlaygroundApiV0EnumsItemStateFailedCause'
