From c584bf2729bb6eb9229aad9dbacc65beaa5dbc2f Mon Sep 17 00:00:00 2001 From: tragait Date: Fri, 20 Aug 2021 15:45:58 +0100 Subject: Post impl for passthrough running (Ncmp impl.) Issue-ID: CPS-577 Signed-off-by: tragait Change-Id: Ic8983349cf88fb123feb95ce01ec6fdf670469f4 --- cps-ncmp-rest/docs/openapi/components.yaml | 10 +++++++++- cps-ncmp-rest/docs/openapi/ncmproxy.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) (limited to 'cps-ncmp-rest/docs/openapi') diff --git a/cps-ncmp-rest/docs/openapi/components.yaml b/cps-ncmp-rest/docs/openapi/components.yaml index ca1c6ab794..ffb8dde113 100644 --- a/cps-ncmp-rest/docs/openapi/components.yaml +++ b/cps-ncmp-rest/docs/openapi/components.yaml @@ -112,7 +112,7 @@ components: schema: type: string acceptParamInHeader: - name: accept + name: Accept in: header required: false description: Accept parameter for response, if accept parameter is null, that means client can accept any format. @@ -134,6 +134,14 @@ components: schema: type: integer minimum: 1 + contentParamInHeader: + name: Content-Type + in: header + required: false + description: Content parameter for request, if content parameter is null, default value is application/json. + schema: + type: string + default: application/json responses: diff --git a/cps-ncmp-rest/docs/openapi/ncmproxy.yml b/cps-ncmp-rest/docs/openapi/ncmproxy.yml index b2e14d714a..8eed9b37b1 100755 --- a/cps-ncmp-rest/docs/openapi/ncmproxy.yml +++ b/cps-ncmp-rest/docs/openapi/ncmproxy.yml @@ -249,5 +249,35 @@ resourceDataForPassthroughRunning: $ref: 'components.yaml#/components/responses/Unauthorized' 403: $ref: 'components.yaml#/components/responses/Forbidden' + 404: + $ref: 'components.yaml#/components/responses/NotFound' + post: + tags: + - network-cm-proxy + summary: create resource data from pass-through running for cm handle + description: create resource data from pass-through running for given cm handle + operationId: createResourceDataRunningForCmHandle + parameters: + - $ref: 'components.yaml#/components/parameters/cmHandleInPath' + - $ref: 'components.yaml#/components/parameters/resourceIdentifierInPath' + - $ref: 'components.yaml#/components/parameters/contentParamInHeader' + requestBody: + required: true + content: + application/json: + schema: + type: object + application/yang-data+json: + schema: + type: object + responses: + 201: + $ref: 'components.yaml#/components/responses/Created' + 400: + $ref: 'components.yaml#/components/responses/BadRequest' + 401: + $ref: 'components.yaml#/components/responses/Unauthorized' + 403: + $ref: 'components.yaml#/components/responses/Forbidden' 404: $ref: 'components.yaml#/components/responses/NotFound' \ No newline at end of file -- cgit 1.2.3-korg