You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation of the APEx Dispatch Service API to support the execution of single job executions or upscaling tasks for APEx-compliant services.
6
6
version: 1.0.0
7
-
externalDocs:
8
-
description: Find out more about Swagger
9
-
url: https://swagger.io
10
-
# server:
11
-
# - url: https://petstore3.swagger.io/api/v3
7
+
8
+
security:
9
+
- apex_auth: []
10
+
12
11
tags:
13
12
- name: Upscale Tasks
14
-
description: API calls to manage upscale tasks
15
-
# externalDocs:
16
-
# description: Find out more
17
-
# url: https://swagger.io
13
+
description: API calls to manage upscale tasks bundling multiple processing jobs
18
14
- name: Unit Jobs
19
-
description: API calls to manage processing jobs
20
-
# externalDocs:
21
-
# description: Find out more about our store
22
-
# url: https://swagger.io
15
+
description: API calls to manage single processing jobs
23
16
24
17
paths:
25
18
/tiles:
26
19
post:
27
20
tags:
28
21
- Upscale Tasks
29
-
summary: Retrieve a list of tiles to process
22
+
summary: Split an area of interest in a list of tiles
30
23
description: |-
31
-
Given a certain area of interest and a tiling grid definition (from the service’s Max AOI capacity), calculate the number of tiles to be processed by the upscaling service
24
+
Given a certain area of interest and a tiling grid definition (from the service’s Max AOI capacity), calculate the number of tiles to be processed by the upscaling service.
32
25
requestBody:
33
26
description: Request the tiles to be processed.
34
27
content:
@@ -44,21 +37,55 @@ paths:
44
37
schema:
45
38
$ref: '#/components/schemas/TileResponse'
46
39
'400':
47
-
description: Invalid ID supplied
40
+
description: Grid ID is not supported
41
+
security:
42
+
- apex_auth: []
43
+
44
+
/upscale_tasks:
45
+
post:
46
+
tags:
47
+
- Upscale Tasks
48
+
summary: Create a new upscaling task
49
+
requestBody:
50
+
description: Details of the upscaling task to be created
51
+
content:
52
+
application/json:
53
+
schema:
54
+
$ref: '#/components/schemas/UpscaleRequest'
55
+
responses:
56
+
'200':
57
+
description: Successfully created an upscaling task
58
+
content:
59
+
application/json:
60
+
schema:
61
+
$ref: '#/components/schemas/UpscalingTask'
62
+
security:
63
+
- apex_auth: []
64
+
65
+
/upscale_tasks/{taskID}:
66
+
get:
67
+
tags:
68
+
- Upscale Tasks
69
+
summary: Get the details of a specific upscaling task
70
+
parameters:
71
+
- in: path
72
+
name: taskID
73
+
schema:
74
+
type: integer
75
+
required: true
76
+
description: ID of the upscaling task to retrieve
77
+
responses:
78
+
'200':
79
+
description: Successfully retrieved the upscaling task
80
+
content:
81
+
application/json:
82
+
schema:
83
+
$ref: '#/components/schemas/UpscalingTask'
48
84
'404':
49
-
description: Pet not found
50
-
'422':
51
-
description: Validation exception
52
-
# default:
53
-
# description: Unexpected error
54
-
# content:
55
-
# application/json:
56
-
# schema:
57
-
# $ref: "#/components/schemas/Error"
85
+
description: Could not find the upscaling task for the provided ID
58
86
security:
59
-
- petstore_auth:
60
-
- write:pets
61
-
- read:pets
87
+
- apex_auth: []
88
+
62
89
components:
63
90
schemas:
64
91
TileRequest:
@@ -82,22 +109,105 @@ components:
82
109
tiles:
83
110
type: array
84
111
items:
85
-
type: object
86
-
description: GeoJSON Feature using coordinates in EPSG:4326
87
-
example: { "type": "Feature", "geometry": {}}
112
+
$ref: '#/components/schemas/Tile'
113
+
114
+
UpscaleRequest:
115
+
type: object
116
+
required:
117
+
- label
118
+
- tiles
119
+
- title
120
+
- service
121
+
- parameters
122
+
properties:
123
+
label:
124
+
$ref: '#/components/schemas/ProcessType'
125
+
tiles:
126
+
type: array
127
+
items:
128
+
$ref: '#/components/schemas/Tile'
129
+
title:
130
+
type: string
131
+
description: Title of the upscaling task
132
+
example: My upscaling task
133
+
service:
134
+
$ref: '#/components/schemas/ServiceDetails'
135
+
parameters:
136
+
$ref: '#/components/schemas/ServiceParameters'
137
+
138
+
88
139
89
-
140
+
# OBJECTS
90
141
142
+
ServiceDetails:
143
+
type: object
144
+
description: Details of the service to be executed
145
+
properties:
146
+
id:
147
+
type: string
148
+
149
+
ServiceParameters:
150
+
type: object
151
+
description: Object containing the parameters that need to be provided to the service execution
0 commit comments