Skip to content

Instantly share code, notes, and snippets.

@nicolastakashi
Created May 29, 2020 08:34
Show Gist options
  • Select an option

  • Save nicolastakashi/5f897f4564a8e98b436081d17f6846af to your computer and use it in GitHub Desktop.

Select an option

Save nicolastakashi/5f897f4564a8e98b436081d17f6846af to your computer and use it in GitHub Desktop.
get:
operationId: get-task
summary: Get task by id
description: Return a task
tags:
- Tasks
parameters:
- in: path
name: id
description: Task id
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '../../schemas/task.yaml#/components/schemas/Task'
put:
operationId: update-task
summary: Update a task
description: Update a task
tags:
- Tasks
parameters:
- in: path
name: id
description: Task id
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../schemas/task.yaml#/components/schemas/Task'
responses:
'202':
description: No Content
delete:
operationId: delete-task
summary: Delete a task
description: Delete a task
tags:
- Tasks
parameters:
- in: path
name: id
description: Task id
required: true
schema:
type: string
format: uuid
responses:
'202':
description: No content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment