Merge pull request #14009 from influxdata/cancel-runs-schema

chore(tasks): add swagger for canceling task runs
pull/14417/head
Jorge Landivar 2019-07-23 02:55:06 -05:00 committed by GitHub
commit 9dd27067e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -4440,6 +4440,34 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Error"
delete:
operationId: DeleteTasksIDRunsID
tags:
- Tasks
summary: Cancel a single running task
parameters:
- $ref: '#/components/parameters/TraceSpan'
- in: path
name: taskID
schema:
type: string
required: true
description: task ID
- in: path
name: runID
schema:
type: string
required: true
description: run ID
responses:
'204':
description: delete has been accepted
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
'/tasks/{taskID}/runs/{runID}/retry':
post:
operationId: PostTasksIDRunsIDRetry