Add serviceCatalog rest services 71/39671/2
authorMatthieuGeerebaert <matthieu.geerebaert@orange.com>
Wed, 28 Mar 2018 11:36:26 +0000 (13:36 +0200)
committerMatthieuGeerebaert <matthieu.geerebaert@orange.com>
Tue, 3 Apr 2018 21:35:04 +0000 (23:35 +0200)
commit99bf586a6eb9799c4f33e43976d741f2807ea287
tree817406c30c99f366c000afc3fe0963b6b32499e7
parent65fd3da0ea090f3c1fc82cea0c49547dbf362fcf
Add serviceCatalog rest services

- Add get and find serviceSpecification operations
- Add API exceptions management
- Consumes SDC apis
- Add tests
- Fix pom.xml conflict

Change-Id: Id103d83dc8a981885100daabe868cdf18a922975
Issue-ID: EXTAPI-39
Signed-off-by: MatthieuGeerebaert <matthieu.geerebaert@orange.com>
28 files changed:
pom.xml
src/main/java/org/onap/nbi/OnapComponentsUrlPaths.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/RestConfiguration.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/servicecatalog/ServiceSpecificationResource.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/servicecatalog/ServiceSpecificationService.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/servicecatalog/ToscaInfosProcessor.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/servicecatalog/jolt/FindServiceSpecJsonTransformer.java [new file with mode: 0644]
src/main/java/org/onap/nbi/apis/servicecatalog/jolt/GetServiceSpecJsonTransformer.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/ApiError.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/ApiException.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/ApiExceptionHandler.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/BackendErrorHandler.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/BackendFunctionalException.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/TechnicalException.java [new file with mode: 0644]
src/main/java/org/onap/nbi/exceptions/ValidationException.java [new file with mode: 0644]
src/main/resources/application-localhost.properties [new file with mode: 0644]
src/main/resources/application.properties
src/main/resources/jolt/findServiceCatalog.json [new file with mode: 0644]
src/main/resources/jolt/getServiceCatalog.json [new file with mode: 0644]
src/test/java/org/onap/nbi/apis/resources/ApiTest.java [new file with mode: 0644]
src/test/java/org/onap/nbi/apis/resources/ServiceCatalogAssertions.java [new file with mode: 0644]
src/test/java/org/onap/nbi/apis/resources/StatusResourceTest.java [moved from src/test/java/org/onap/nbi/apis/status/StatusTest.java with 91% similarity]
src/test/resources/application.properties [new file with mode: 0644]
src/test/resources/mappings/sdc_find.json [new file with mode: 0644]
src/test/resources/mappings/sdc_get_1e3feeb0-8e36-46c6-862c-236d9c626439.json [new file with mode: 0644]
src/test/resources/mappings/sdc_get_1e3feeb0-8e36-46c6-862c-236d9c626439_tosca.json [new file with mode: 0644]
src/test/resources/mappings/sdc_get_1e3feeb0-8e36-46c6-862c-236d9c626439_withoutTosca.json [new file with mode: 0644]