diff options
author | tragait <rahul.tyagi@est.tech> | 2021-09-22 10:50:15 +0100 |
---|---|---|
committer | tragait <rahul.tyagi@est.tech> | 2021-09-27 11:29:53 +0100 |
commit | 400b6c7a610e18e2c648a0680fe04b93792664cd (patch) | |
tree | 7b13886152e75eacd9d130cefefecd57ca075f2f /docs/openapi | |
parent | cb8bc88d47fb1614aa6d89ce1f0054a1e2775821 (diff) |
fix fetch modules request body
Issue-ID: CPS-653
Signed-off-by: tragait <rahul.tyagi@est.tech>
Change-Id: I6b5f0fc74ea4e70e65b05ed353e25311ed36135e
Diffstat (limited to 'docs/openapi')
-rw-r--r-- | docs/openapi/components.yml | 4 | ||||
-rw-r--r-- | docs/openapi/openapi.yml | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/openapi/components.yml b/docs/openapi/components.yml index 94742c82..9cce52de 100644 --- a/docs/openapi/components.yml +++ b/docs/openapi/components.yml @@ -19,12 +19,14 @@ components: items: type: string - DmiReadRequestBody: + DmiModuleReadRequestBody: type: object properties: operation: type: string enum: [read] + dataType: + type: string data: type: object properties: diff --git a/docs/openapi/openapi.yml b/docs/openapi/openapi.yml index 716528b1..f66897a2 100644 --- a/docs/openapi/openapi.yml +++ b/docs/openapi/openapi.yml @@ -45,6 +45,12 @@ paths: required: true schema: type: string + requestBody: + description: Operational body + content: + application/json: + schema: + $ref: 'components.yml#/components/schemas/DataAccessReadRequest' responses: '200': description: OK @@ -107,7 +113,7 @@ paths: content: application/json: schema: - $ref: 'components.yml#/components/schemas/DmiReadRequestBody' + $ref: 'components.yml#/components/schemas/DmiModuleReadRequestBody' responses: '200': description: OK |