summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-rest/docs/openapi/components.yaml
diff options
context:
space:
mode:
authorNiamh Core <niamh.core@est.tech>2021-12-13 15:05:19 +0000
committerGerrit Code Review <gerrit@onap.org>2021-12-13 15:05:19 +0000
commit4207fab422760b17187d37776ebc1867b995bba1 (patch)
tree8d80c6ae89a1a20de5eddbc895389169248c4577 /cps-ncmp-rest/docs/openapi/components.yaml
parent5af63eb8c5a32180f1c1d52048fe3390305dc4ac (diff)
parentd000733344658e79e8a384e724349bdb644d7c62 (diff)
Merge "Define response objects(schemas) in cps-ncmp"
Diffstat (limited to 'cps-ncmp-rest/docs/openapi/components.yaml')
-rw-r--r--cps-ncmp-rest/docs/openapi/components.yaml22
1 files changed, 16 insertions, 6 deletions
diff --git a/cps-ncmp-rest/docs/openapi/components.yaml b/cps-ncmp-rest/docs/openapi/components.yaml
index 719282b3e7..d9bd49a097 100644
--- a/cps-ncmp-rest/docs/openapi/components.yaml
+++ b/cps-ncmp-rest/docs/openapi/components.yaml
@@ -48,7 +48,6 @@ components:
type: array
items:
$ref: '#/components/schemas/RestCmHandle'
- example: [my-cm-handle1, my-cm-handle2, my-cm-handle3]
updatedCmHandles:
type: array
items:
@@ -121,6 +120,17 @@ components:
type: string
example: my-cm-handle-id
+ ModuleReference:
+ type: object
+ title: Module reference details
+ properties:
+ moduleName:
+ type: string
+ example: my-module-name
+ revision:
+ type: string
+ example: my-module-revision
+
examples:
dataSampleRequest:
summary: Sample request
@@ -134,7 +144,6 @@ components:
books:
- authors:
- Iain M. Banks
- - authors:
- Ursula K. Le Guin
- code: '02'
name: kids
@@ -150,14 +159,15 @@ components:
categories:
- code: '01'
books:
- - {}
- - {}
+ - authors:
+ - Iain M. Banks
+ - Ursula K. Le Guin
name: SciFi
- code: '02'
books:
- - {}
+ - authors:
+ - Philip Pullman
name: kids
- bookstore-name: Chapters
parameters:
cmHandleInPath: