Split the CpsRestController.java 30/116430/4
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>
Wed, 16 Dec 2020 16:51:08 +0000 (16:51 +0000)
committerRishi Chail <rishi.chail@est.tech>
Thu, 17 Dec 2020 12:24:44 +0000 (12:24 +0000)
commit84ac94d2f3f9ebd6a3a7befa244beef851eac126
tree6666b6a851c47ba6095d8a6ce9a4897978c5064c
parent951b41eb70a8dfb90dc357cb20bda07a832eaec1
Split the CpsRestController.java

1. Changes in openApi.yml tags to cps-admin and cps-data
2. 2 different controllers implementing the corresponding Interfaces generated by the openapi
3. CpsRestExceptionHandler.java modified to handle the exceptions from all the controllers

Issue-ID: CPS-129
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: If4da380771093f2a06946340c015ffa5c39e105d
cps-rest/docs/api/swagger/openapi.yml
cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java [moved from cps-rest/src/main/java/org/onap/cps/rest/controller/CpsRestController.java with 78% similarity, mode: 0644]
cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java [new file with mode: 0644]
cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java