Adding examples in openapi for cps-core 69/125869/8
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>
Wed, 24 Nov 2021 13:35:10 +0000 (13:35 +0000)
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>
Thu, 2 Dec 2021 13:48:29 +0000 (13:48 +0000)
commit5d8b24107ad579db89bcdad63476143f4a2db755
tree9892587684f24f7559c1c93d61c173c875559693
parenta84a4aa84fd22af9b89424d776a18a98d7515bd2
Adding examples in openapi for cps-core

1. Added examples for all parameters, request body and response body
2. Changed the response/request type to Object from String for all json objects
3. Passed json format data in all tests
4. PUT and PATCH operations at present return empty response, hence examples are changed to be in sync

Issue-ID: CPS-780
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: If6dd5bb48df4e1bbf1026eaadf315df8f972e282
cps-rest/docs/openapi/components.yml
cps-rest/docs/openapi/cpsData.yml
cps-rest/docs/openapi/cpsQuery.yml
cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
cps-rest/src/test/groovy/org/onap/cps/rest/controller/DataRestControllerSpec.groovy
cps-rest/src/test/groovy/org/onap/cps/rest/exceptions/CpsRestExceptionHandlerSpec.groovy