summaryrefslogtreecommitdiffstats
path: root/docs/openapi
diff options
context:
space:
mode:
Diffstat (limited to 'docs/openapi')
-rw-r--r--docs/openapi/components.yml33
-rw-r--r--docs/openapi/openapi.yml27
2 files changed, 59 insertions, 1 deletions
diff --git a/docs/openapi/components.yml b/docs/openapi/components.yml
index f38ed64b..c67dad69 100644
--- a/docs/openapi/components.yml
+++ b/docs/openapi/components.yml
@@ -19,6 +19,30 @@ components:
items:
type: string
+ ModuleRequestParent:
+ type: object
+ properties:
+ operation:
+ type: string
+ enum: [read]
+ data:
+ type: object
+ properties:
+ modules:
+ type: array
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ revision:
+ type: string
+ cmHandleProperties:
+ type: object
+ additionalProperties:
+ type: string
+ example: system-001
+
responses:
NotFound:
description: The specified resource was not found
@@ -65,3 +89,12 @@ components:
NoContent:
description: No Content
content: {}
+
+ parameters:
+ cmHandleInPath:
+ name: cmHandle
+ in: path
+ description: The identifier for a network function, network element, subnetwork, or any other cm object by managed Network CM Proxy
+ required: true
+ schema:
+ type: string \ No newline at end of file
diff --git a/docs/openapi/openapi.yml b/docs/openapi/openapi.yml
index 44747a9e..f261c0da 100644
--- a/docs/openapi/openapi.yml
+++ b/docs/openapi/openapi.yml
@@ -97,4 +97,29 @@ paths:
'401':
$ref: 'components.yml#/components/responses/Unauthorized'
'403':
- $ref: 'components.yml#/components/responses/Forbidden' \ No newline at end of file
+ $ref: 'components.yml#/components/responses/Forbidden'
+
+ /v1/ch/{cmHandle}/moduleResources:
+ post:
+ description: Retrieve module resources for one or more modules
+ tags:
+ - dmi-plugin
+ summary: Retrieve module resources
+ operationId: retrieveModuleResources
+ parameters:
+ - $ref: 'components.yml#/components/parameters/cmHandleInPath'
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: 'components.yml#/components/schemas/ModuleRequestParent'
+ responses:
+ '200':
+ $ref: 'components.yml#/components/responses/Ok'
+ '400':
+ $ref: 'components.yml#/components/responses/BadRequest'
+ '401':
+ $ref: 'components.yml#/components/responses/Unauthorized'
+ '403':
+ $ref: 'components.yml#/components/responses/Forbidden'