Skip to content

Commit 242b926

Browse files
author
Gregor Käfer
committed
Update Solution 3 Open API
1 parent ad8269c commit 242b926

File tree

1 file changed

+75
-45
lines changed

1 file changed

+75
-45
lines changed

solution-3/solution3.yaml

Lines changed: 75 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ info:
33
title: HERO
44
version: "1.0.0"
55
paths:
6-
/upload/validation:
6+
/provider/upload/validation:
77
post:
8-
summary: Endpoint to upload validation JSON on the platform.
8+
summary: Endpoint to upload validation JSON payloads.
99
requestBody:
1010
required: true
1111
content:
@@ -16,13 +16,13 @@ paths:
1616
'200':
1717
description: The JSON was uploaded successfully.
1818
'500':
19-
description: A problem occurred while processing the JSON upload request.
19+
description: A problem when processing the json upload request occured.
2020
tags:
2121
- Upload
2222

23-
/upload/approval:
23+
/provider/upload/approval:
2424
post:
25-
summary: Endpoint to upload approval JSON on the platform.
25+
summary: Endpoint to upload approval JSON payloads.
2626
requestBody:
2727
required: true
2828
content:
@@ -33,7 +33,7 @@ paths:
3333
'200':
3434
description: The JSON was uploaded successfully.
3535
'500':
36-
description: A problem occurred while processing the JSON upload request.
36+
description: A problem when processing the json upload request occured.
3737
tags:
3838
- Upload
3939

@@ -42,50 +42,44 @@ components:
4242
UploadPayload:
4343
type: object
4444
properties:
45+
created:
46+
type: string
47+
format: date-time
48+
modified:
49+
type: string
50+
format: date-time
51+
id:
52+
type: string
4553
title:
4654
type: string
4755
description:
4856
type: string
49-
refersTo:
50-
type: array
51-
items:
52-
$ref: '#/components/schemas/RefersTo'
53-
isDefinedBy:
54-
type: string
55-
hasTarget:
56-
$ref: '#/components/schemas/HasTarget'
57-
lockoutPoints:
58-
type: integer
59-
example: 2
60-
hasStep:
61-
type: array
62-
items:
63-
$ref: '#/components/schemas/Step'
64-
trace:
57+
isAdoptedBy:
6558
type: string
66-
67-
RefersTo:
68-
type: object
69-
properties:
70-
identifier:
59+
machineDepartment:
7160
type: string
72-
title:
61+
machineManufacturer:
7362
type: string
74-
format:
63+
machineName:
7564
type: string
76-
accessUrl:
65+
machineSite:
7766
type: string
78-
format: uri
79-
80-
HasTarget:
81-
type: object
82-
properties:
8367
machineType:
8468
type: string
85-
machineName:
69+
status:
70+
type: string
71+
type:
8672
type: string
87-
location:
73+
user:
8874
type: string
75+
hasStep:
76+
type: array
77+
items:
78+
$ref: '#/components/schemas/Step'
79+
references:
80+
type: array
81+
items:
82+
$ref: '#/components/schemas/Reference'
8983

9084
Step:
9185
type: object
@@ -94,22 +88,42 @@ components:
9488
type: string
9589
description:
9690
type: string
91+
energyPoint:
92+
$ref: '#/components/schemas/EnergyPoint'
9793
hasStep:
9894
type: array
9995
items:
10096
$ref: '#/components/schemas/Step'
101-
energyPointType:
97+
hasStepVerification:
98+
type: array
99+
items:
100+
$ref: '#/components/schemas/StepVerification'
101+
isOptional:
102+
type: boolean
103+
references:
104+
type: array
105+
items:
106+
$ref: '#/components/schemas/Reference'
107+
substepsPolicy:
102108
type: string
109+
110+
EnergyPoint:
111+
type: object
112+
properties:
103113
energyPointIdentifier:
104114
type: string
105-
refersTo:
115+
energySource:
116+
type: string
117+
isEnergyPoint:
118+
type: boolean
119+
ppe:
106120
type: array
107121
items:
108-
$ref: '#/components/schemas/RefersTo'
109-
isOptional:
110-
type: boolean
111-
stepVerification:
112-
$ref: '#/components/schemas/StepVerification'
122+
type: string
123+
typeOfLock:
124+
type: array
125+
items:
126+
type: string
113127

114128
StepVerification:
115129
type: object
@@ -119,6 +133,22 @@ components:
119133
description:
120134
type: string
121135

136+
Reference:
137+
type: object
138+
properties:
139+
format:
140+
type: string
141+
resource:
142+
type: object
143+
properties:
144+
key:
145+
type: string
146+
url:
147+
type: string
148+
format: uri
149+
title:
150+
type: string
151+
122152
tags:
123153
- name: Upload
124-
description: Endpoints for uploading JSON payloads.
154+
description: Endpoints for uploading Validation and Approval JSON payloads.

0 commit comments

Comments
 (0)