Structured Exception details for DMI 16/128116/13
authormpriyank <priyank.maheshwari@est.tech>
Mon, 28 Mar 2022 10:17:47 +0000 (15:47 +0530)
committermpriyank <priyank.maheshwari@est.tech>
Mon, 4 Apr 2022 15:41:09 +0000 (21:11 +0530)
commit93afc1eb95f38939ec0c60cce466d76d449e7faf
treefc2cc9abe88771a5a302fb5d4f51566f80c6ec19
parent512f7ab93af18ed1f2bd93da18879666906521f6
Structured Exception details for DMI

- Introduced DmiErrorMessage in API docs with 502 Bad Gateway
- HttpClientRequestException will be thrown which will be exposed as 502 BAD Gateway for the client from NCMP

Issue-ID: CPS-917
Change-Id: Iba8f159e8216bc1f63a9ab86208e5c802437e2e8
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-ncmp-rest/docs/openapi/components.yaml
cps-ncmp-rest/docs/openapi/ncmp.yml
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/exceptions/NetworkCmProxyRestExceptionHandler.java
cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/exceptions/NetworkCmProxyRestExceptionHandlerSpec.groovy
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/exception/HttpClientRequestException.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy
docs/api/swagger/ncmp/openapi.yaml