From 577efb09a39282c608b53a3099b7edc95954f9c2 Mon Sep 17 00:00:00 2001 From: niamhcore Date: Wed, 11 Aug 2021 16:13:53 +0100 Subject: Transform module information from NetConf node to Generic format for NCMP Issue-ID: CPS-531 Signed-off-by: niamhcore Change-Id: I918be4db5066d92b23e25fc7fbc22d4535fafc8c --- docs/openapi/components.yml | 15 +++++++++++++++ docs/openapi/openapi.yml | 24 +++++++++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) (limited to 'docs/openapi') 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': -- cgit 1.2.3-korg