Skip to content

Commit

Permalink
Add missing schema files for part 2 (closes #81) (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
autermann authored Dec 13, 2024
1 parent 3a88794 commit 7132570
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 4 deletions.
21 changes: 21 additions & 0 deletions api/part2/openapi/examples/events/systemEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "e5ce3b97-0fe2-4f92-a631-4bba0bd82fb1",
"label": "Deployment",
"definition": "https://vocab.nerc.ac.uk/collection/W03/current/W030002/",
"time": "2015-10-12T12:02:00.000Z",
"documentation": [
{
"name": "log",
"link": {
"href": "http://trios.de/lisa3075_installation.log"
}
}
],
"links": [
{
"href": "https://data.example.com/link/to/resource",
"type": "application/json",
"title": "Resource Name"
}
]
}
10 changes: 10 additions & 0 deletions api/part2/openapi/parameters/controlStreamIdList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

name: controlStream
description: |-
List of control stream local IDs or unique IDs (URI).
Only resources that are associated to a control stream that has one of the provided identifiers are selected.
in: query
required: false
schema:
$ref: ../../../part1/openapi/parameters/idListSchema.yaml
explode: false
10 changes: 10 additions & 0 deletions api/part2/openapi/parameters/dataStreamIdList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

name: dataStream
description: |-
List of data stream local IDs or unique IDs (URI).
Only resources that are associated to a data stream that has one of the provided identifiers are selected.
in: query
required: false
schema:
$ref: ../../../part1/openapi/parameters/idListSchema.yaml
explode: false
2 changes: 1 addition & 1 deletion api/part2/openapi/paths/commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get:
- $ref: ../parameters/executionTime.yaml
- $ref: ../parameters/statusCodeList.yaml
- $ref: ../parameters/senderList.yaml
- $ref: ../../../part1/openapi/parameters/controlStreamIdList.yaml
- $ref: ../parameters/controlStreamIdList.yaml
- $ref: ../../../part1/openapi/parameters/systemIdList.yaml
- $ref: ../../../part1/openapi/parameters/foiIdList.yaml
- $ref: ../../../part1/openapi/parameters/controlPropIdList.yaml
Expand Down
2 changes: 1 addition & 1 deletion api/part2/openapi/paths/observations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ get:
- $ref: ../../../part1/openapi/parameters/idList.yaml
- $ref: ../parameters/phenomenonTime.yaml
- $ref: ../parameters/resultTime.yaml
- $ref: ../../../part1/openapi/parameters/dataStreamIdList.yaml
- $ref: ../parameters/dataStreamIdList.yaml
- $ref: ../../../part1/openapi/parameters/systemIdList.yaml
- $ref: ../../../part1/openapi/parameters/foiIdList.yaml
- $ref: ../../../part1/openapi/parameters/obsPropIdList.yaml
Expand Down
2 changes: 1 addition & 1 deletion api/part2/openapi/paths/systemEventById.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
- $ref: ../parameters/systemId.yaml
- $ref: ../../../part1/openapi/parameters/systemId.yaml
- $ref: ../parameters/eventId.yaml

get:
Expand Down
2 changes: 1 addition & 1 deletion api/part2/openapi/responses/systemEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ content:
simple:
summary: Scalar Observation (Measure)
value:
$ref: ../examples/events/datastream-added.json
$ref: ../examples/events/systemEvent.json

0 comments on commit 7132570

Please sign in to comment.