Skip to content

Commit 21d3afc

Browse files
committed
refactor more common uws components
1 parent ef82034 commit 21d3afc

5 files changed

Lines changed: 28 additions & 32 deletions

File tree

openapi/uws/uws-jobid-param.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: jobID
2+
in: path
3+
description: unique job identifier generated by the server
4+
required: true
5+
schema:
6+
type: string
7+
example: a1b2c3
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: PHASE
2+
in: query
3+
description: attempt to change the phase
4+
required: true
5+
schema:
6+
type: string
7+
enum: [ABORT, RUN]
8+
example: RUN

openapi/uws/uws-wait-param.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: WAIT
2+
in: query
3+
description: wait for the specified time in seconds or until the phase changes
4+
required: false
5+
schema:
6+
type: integer
7+
example: WAIT=60
8+

openapi/vosi/vosi-table-ops-job-phase.yaml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ get:
55
summary: get a UWS job phase
66
description: job phase resource
77
parameters:
8-
- name: jobID
9-
in: path
10-
description: unique job identifier generated by the server
11-
required: true
12-
type: string
13-
example: a1b2c3
8+
- $ref: ../uws/uws-jobid-param.yaml
149
responses:
1510
'200':
1611
description: the current phase
@@ -27,20 +22,8 @@ post:
2722
summary: change a UWS job phase
2823
description: update job
2924
parameters:
30-
- name: jobID
31-
in: path
32-
description: unique job identifier generated by the server
33-
required: true
34-
type: string
35-
example: a1b2c3
36-
- name: PHASE
37-
in: query
38-
description: attempt to change the phase
39-
required: true
40-
schema:
41-
type: string
42-
enum: [ABORT, RUN]
43-
example: RUN
25+
- $ref: ../uws/uws-jobid-param.yaml
26+
- $ref: ../uws/uws-phase-change-param.yaml
4427
responses:
4528
'200':
4629
description: phase change successful

openapi/vosi/vosi-table-ops-job.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,8 @@ get:
55
summary: get a UWS job description
66
description: job resource
77
parameters:
8-
- name: jobID
9-
in: path
10-
description: unique job identifier generated by the server
11-
required: true
12-
type: string
13-
example: a1b2c3
14-
- name: WAIT
15-
in: query
16-
description: wait for the specified time in seconds or until the phase changes
17-
required: false
18-
type: integer
19-
example: WAIT=60
8+
- $ref: ../uws/uws-jobid-param.yaml
9+
- $ref: ../uws/uws-wait-param.yaml
2010
responses:
2111
'200':
2212
$ref: ../uws/uws-responses.yaml#/job

0 commit comments

Comments
 (0)