openapi: 3.0.3
info:
  title: Task API
  version: 1.0.0
paths:
  /tasks/{taskId}:
    get:
      summary: Read a task
      responses:
        '200':
          description: A task
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
components:
  schemas:
    Task:
      type: object
      properties:
        id:
          type: string
        state:
          type: string
          enum: [ready, pending]
