Add list remote catalogs API 85/3985/3
authorAndrew Gauld <agauld@att.com>
Thu, 21 Mar 2019 18:28:54 +0000 (18:28 +0000)
committerAndrew Gauld <agauld@att.com>
Fri, 22 Mar 2019 16:06:37 +0000 (16:06 +0000)
commit69ebdde9386552a1dcd9e3ee9eb8ab348a6f8318
tree6421c1b55459281c092b3a782e7f283898ebb5e9
parent435867d3734cd5b01d123fb1af742e14afe9b65d
Add list remote catalogs API

New external list catalogs API: GET /catalogs
Returns list of (MLP)Catalog
In several places refactored code where copy&paste would have been needed:
Refactored *LocalServiceImpl class data loading
Refactored Peer*Controller class error handling
Refactored CatalogServiceImpl class paged data retrieval
Refactored FederationClient class peer access
Refactored Mapper class deserializer construction

Change-Id: I30013a52e3171fa31c9300fa2abee80b9a06832b
Issue-ID: ACUMOS-2575
Signed-off-by: Andrew Gauld <agauld@att.com>
27 files changed:
docs/developer-guide.rst
docs/release-notes.rst
gateway/src/main/java/org/acumos/federation/gateway/cds/Catalog.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/cds/Mapper.java
gateway/src/main/java/org/acumos/federation/gateway/common/API.java
gateway/src/main/java/org/acumos/federation/gateway/common/FederationClient.java
gateway/src/main/java/org/acumos/federation/gateway/controller/AbstractController.java
gateway/src/main/java/org/acumos/federation/gateway/controller/CatalogController.java
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerCatalogController.java
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerPeersController.java
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerPingController.java
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerRegistrationController.java
gateway/src/main/java/org/acumos/federation/gateway/service/CatalogService.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/AbstractServiceLocalImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/CatalogServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/CatalogServiceLocalImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/CodeNamesServiceLocalImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/PeerServiceLocalImpl.java
gateway/src/test/java/org/acumos/federation/gateway/test/AuthorizationTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/CatalogServiceTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/ContentServiceTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/ControllerTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/LocalControllerTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/TaskTest.java
gateway/src/test/resources/mockCDSPortalCatalogsResponse.json [new file with mode: 0644]
gateway/src/test/resources/mockPeerCatalogsResponse.json [new file with mode: 0644]
gateway/src/test/resources/test-catalogs.json [new file with mode: 0644]