openapi: long-running operations
This commit is contained in:
parent
c346e192cb
commit
65586b7e78
59
openapi.yaml
59
openapi.yaml
@ -10,6 +10,8 @@ tags:
|
||||
description: Mapfix operations
|
||||
- name: Maps
|
||||
description: Map queries
|
||||
- name: Operations
|
||||
description: Long-running operations
|
||||
- name: Session
|
||||
description: Session queries
|
||||
- name: Submissions
|
||||
@ -435,6 +437,27 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
/operations/{OperationID}:
|
||||
get:
|
||||
summary: Retrieve operation with ID
|
||||
operationId: getOperation
|
||||
tags:
|
||||
- Operations
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/OperationID'
|
||||
responses:
|
||||
"200":
|
||||
description: Successful response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Operation"
|
||||
default:
|
||||
description: General Error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
/submissions:
|
||||
get:
|
||||
summary: Get list of submissions
|
||||
@ -1033,6 +1056,14 @@ components:
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
OperationID:
|
||||
name: OperationID
|
||||
in: path
|
||||
required: true
|
||||
description: The unique identifier for a long-running operation.
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
SubmissionID:
|
||||
name: SubmissionID
|
||||
in: path
|
||||
@ -1214,6 +1245,34 @@ components:
|
||||
TargetAssetID:
|
||||
type: integer
|
||||
format: int64
|
||||
Operation:
|
||||
required:
|
||||
- OperationID
|
||||
- Date
|
||||
- Owner
|
||||
- Status
|
||||
- StatusMessage
|
||||
- Path
|
||||
type: object
|
||||
properties:
|
||||
OperationID:
|
||||
type: integer
|
||||
format: int32
|
||||
Date:
|
||||
type: integer
|
||||
format: int64
|
||||
Owner:
|
||||
type: integer
|
||||
format: int64
|
||||
Status:
|
||||
type: integer
|
||||
format: int32
|
||||
StatusMessage:
|
||||
type: string
|
||||
maxLength: 256
|
||||
Path:
|
||||
type: string
|
||||
maxLength: 128
|
||||
Submission:
|
||||
required:
|
||||
- ID
|
||||
|
Loading…
x
Reference in New Issue
Block a user