openapi: internal operation failed endpoint
This commit is contained in:
parent
90841e28cb
commit
8ad087b194
@ -121,6 +121,30 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
|
/operations/{OperationID}/failed:
|
||||||
|
post:
|
||||||
|
summary: (Internal endpoint) Fail an operation and write a StatusMessage
|
||||||
|
operationId: actionOperationFailed
|
||||||
|
tags:
|
||||||
|
- Operations
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/components/parameters/OperationID'
|
||||||
|
- name: StatusMessage
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
minLength: 0
|
||||||
|
maxLength: 4096
|
||||||
|
responses:
|
||||||
|
"204":
|
||||||
|
description: Successful response
|
||||||
|
default:
|
||||||
|
description: General Error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
/submissions:
|
/submissions:
|
||||||
post:
|
post:
|
||||||
summary: Create a new submission
|
summary: Create a new submission
|
||||||
@ -408,6 +432,14 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
OperationID:
|
||||||
|
name: OperationID
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The unique identifier for a long-running operation.
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
SubmissionID:
|
SubmissionID:
|
||||||
name: SubmissionID
|
name: SubmissionID
|
||||||
in: path
|
in: path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user