diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2021-08-25 13:43:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-08-25 13:43:51 +0000 |
commit | 528022a0f33225f3eab6930ff27c3ab8d1638568 (patch) | |
tree | 87170d1b5354ad456ce8a37a04bffa6b3140e309 /docs | |
parent | b8f72560c6f29c49ee80672072d6a168351ce00a (diff) | |
parent | 79e41e0794035ea8dd3ae3064f8d368b5345df95 (diff) |
Merge "Write data for cm handle passthrough:running"
Diffstat (limited to 'docs')
-rw-r--r-- | docs/openapi/components.yml | 17 | ||||
-rw-r--r-- | docs/openapi/openapi.yml | 30 |
2 files changed, 44 insertions, 3 deletions
diff --git a/docs/openapi/components.yml b/docs/openapi/components.yml index cb39fa4e..ba2a0ece 100644 --- a/docs/openapi/components.yml +++ b/docs/openapi/components.yml @@ -58,7 +58,7 @@ components: namespace: type: string - OperationalRequest: + DataAccessReadRequest: type: object properties: operation: @@ -69,6 +69,21 @@ components: additionalProperties: type: string + DataAccessWriteRequest: + type: object + properties: + operation: + type: string + enum: [ create ] + dataType: + type: string + data: + type: object + cmHandleProperties: + type: object + additionalProperties: + type: string + responses: NotFound: description: The specified resource was not found diff --git a/docs/openapi/openapi.yml b/docs/openapi/openapi.yml index af285f4e..f169efd0 100644 --- a/docs/openapi/openapi.yml +++ b/docs/openapi/openapi.yml @@ -136,7 +136,7 @@ paths: content: application/json: schema: - $ref: 'components.yml#/components/schemas/OperationalRequest' + $ref: 'components.yml#/components/schemas/DataAccessReadRequest' responses: '200': $ref: 'components.yml#/components/responses/Ok' @@ -165,7 +165,7 @@ paths: content: application/json: schema: - $ref: 'components.yml#/components/schemas/OperationalRequest' + $ref: 'components.yml#/components/schemas/DataAccessReadRequest' responses: '200': $ref: 'components.yml#/components/responses/Ok' @@ -175,3 +175,29 @@ paths: $ref: 'components.yml#/components/responses/Unauthorized' '403': $ref: 'components.yml#/components/responses/Forbidden' + + post: + description: Write data for a cmHandle using passthrough-running + tags: + - dmi-plugin + summary: Write data for a cmHandle + operationId: writeDataByPassthroughRunningForCmHandle + parameters: + - $ref: 'components.yml#/components/parameters/cmHandleInPath' + - $ref: 'components.yml#/components/parameters/resourceIdentifierInPath' + requestBody: + required: true + content: + application/json: + schema: + $ref: 'components.yml#/components/schemas/DataAccessWriteRequest' + 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' + |