Fix "Create a node" and "Add List Elements" APIs response code 68/138268/5
authorArpit Singh <as00745003@techmahindra.com>
Wed, 17 Jul 2024 04:54:44 +0000 (10:24 +0530)
committerPriyank Maheshwari <priyank.maheshwari@est.tech>
Wed, 24 Jul 2024 09:28:21 +0000 (09:28 +0000)
commit44bca362f17223661abe4fddb6003b097db78879
treef86e6001998a7558649552c9d451d5adbd2fc209
parent5cba1b8333b4b2f2d97160f0ee210dde9f25aee1
Fix "Create a node" and "Add List Elements" APIs response code

Create a node and Add list elements APIs would return a 500 response
code when a JSON payload mismatching the Schema was sent as part of
the request body.

Updated the code to return response code 400.

Issue-ID: CPS-2319
Change-Id: I86d6af446966790d9e45045b330f0c411fcd0f1d
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
cps-rest/docs/openapi/components.yml
cps-rest/docs/openapi/cpsData.yml