summaryrefslogtreecommitdiffstats
path: root/docs/openapi/openapi.yml
diff options
context:
space:
mode:
authortragait <rahul.tyagi@est.tech>2021-07-19 13:46:37 +0100
committertragait <rahul.tyagi@est.tech>2021-08-04 10:40:01 +0100
commit7c4a9aa88269dbdb21c5c54bc47508463548bc1e (patch)
tree7494e6d86edd25ae8bccc38068544dfbd90cf14a /docs/openapi/openapi.yml
parenteddb3dd5458232b1cb5a1ebe940934949607aee6 (diff)
implement dmi get modules using sdnc client
Issue-ID: CPS-483 Change-Id: Ib9b730cabeba308f11db31ef1b45bbd92e3a6ed5 Signed-off-by: tragait <rahul.tyagi@est.tech>
Diffstat (limited to 'docs/openapi/openapi.yml')
-rw-r--r--docs/openapi/openapi.yml48
1 files changed, 39 insertions, 9 deletions
diff --git a/docs/openapi/openapi.yml b/docs/openapi/openapi.yml
index 36e3d12e..7d0569d4 100644
--- a/docs/openapi/openapi.yml
+++ b/docs/openapi/openapi.yml
@@ -24,22 +24,52 @@ info:
servers:
- url: //localhost:8088/
tags:
- - name: dmi-rest
- description: DMI Rest
+ - name: dmi-plugin-internal
+ description: DMI plugin internal rest apis
+ - name: dmi-plugin
+ description: DMI plugin rest apis
+
+
paths:
- /v1/helloworld:
- get:
- description: Hello World
+ /v1/ch/{cmHandle}/modules :
+ post:
tags:
- dmi-plugin
- summary: Hello World
- operationId: helloWorld
+ summary: Get all modules for cm handle
+ description: Get all modules for given cm handle
+ operationId: getModulesForCmHandle
+ parameters:
+ - name: cmHandle
+ in: path
+ description: The cm handle to fetch all the modules
+ required: true
+ schema:
+ type: string
responses:
'200':
- $ref: 'components.yml#/components/responses/Ok'
+ description: OK
+ content:
+ application/json:
+ schema:
+ type: string
+ example: {
+ 'schemas': {
+ 'schema': [
+ {
+ 'identifier': 'example-identifier',
+ 'version': 'example-version',
+ 'format': 'example-format',
+ 'namespace': 'example:namespace',
+ 'location': [
+ 'example-location'
+ ]
+ }
+ ]
+ }
+ }
'400':
$ref: 'components.yml#/components/responses/BadRequest'
'401':
$ref: 'components.yml#/components/responses/Unauthorized'
'403':
- $ref: 'components.yml#/components/responses/Forbidden'
+ $ref: 'components.yml#/components/responses/Forbidden' \ No newline at end of file