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
|
description: Mapfix operations
|
||||||
- name: Maps
|
- name: Maps
|
||||||
description: Map queries
|
description: Map queries
|
||||||
|
- name: Operations
|
||||||
|
description: Long-running operations
|
||||||
- name: Session
|
- name: Session
|
||||||
description: Session queries
|
description: Session queries
|
||||||
- name: Submissions
|
- name: Submissions
|
||||||
@ -435,6 +437,27 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$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:
|
/submissions:
|
||||||
get:
|
get:
|
||||||
summary: Get list of submissions
|
summary: Get list of submissions
|
||||||
@ -1033,6 +1056,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
|
||||||
@ -1214,6 +1245,34 @@ components:
|
|||||||
TargetAssetID:
|
TargetAssetID:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
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:
|
Submission:
|
||||||
required:
|
required:
|
||||||
- ID
|
- ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user