Created
May 29, 2020 08:34
-
-
Save nicolastakashi/5f897f4564a8e98b436081d17f6846af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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