summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/openapi/components.yml15
-rw-r--r--docs/openapi/openapi.yml24
2 files changed, 24 insertions, 15 deletions
diff --git a/docs/openapi/components.yml b/docs/openapi/components.yml
index 05f1ac06..3d8aa2cf 100644
--- a/docs/openapi/components.yml
+++ b/docs/openapi/components.yml
@@ -43,6 +43,21 @@ components:
type: string
example: system-001
+ ModuleSet:
+ type: object
+ properties:
+ schemas:
+ type: array
+ items:
+ type: object
+ properties:
+ moduleName:
+ type: string
+ revision:
+ type: string
+ namespace:
+ type: string
+
OperationalRequest:
type: object
properties:
diff --git a/docs/openapi/openapi.yml b/docs/openapi/openapi.yml
index a4a238c4..114c521e 100644
--- a/docs/openapi/openapi.yml
+++ b/docs/openapi/openapi.yml
@@ -51,22 +51,16 @@ paths:
content:
application/json:
schema:
- type: string
+ $ref: 'components.yml#/components/schemas/ModuleSet'
example: {
- 'schemas': {
- 'schema': [
- {
- 'identifier': 'example-identifier',
- 'version': 'example-version',
- 'format': 'example-format',
- 'namespace': 'example:namespace',
- 'location': [
- 'example-location'
- ]
- }
- ]
- }
- }
+ "schemas": [
+ {
+ "moduleName": "example-identifier",
+ "revision": "example-version",
+ "namespace": "example-namespace"
+ }
+ ]
+ }
'400':
$ref: 'components.yml#/components/responses/BadRequest'
'401':