diff options
author | 2019-02-15 20:28:32 -0500 | |
---|---|---|
committer | 2019-03-05 14:57:45 -0500 | |
commit | 13a84cadc80b9d1219ac04aa19cbde5352418760 (patch) | |
tree | 60b1a8bf6c8a4dbfe01823cd3cb9ea003ec44a43 /src/main/java/org/onap/dcae/inventory | |
parent | 045758aee25a2421e76ddd16df2d22edc6cc69f2 (diff) |
Add health and service endpoints
Added two new APIs to chcek internal health and to check dependencies/external interfaces, which is postgres
like existing /dcae-service-types does
Issue-ID: DCAEGEN2-1134
Change-Id: If0d3bf8ed0cfa7cb8870e91ef32060ffa844f93a
Signed-off-by: Shadi Haidar <sh1986@att.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/inventory')
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/InventoryApplication.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/InventoryApplication.java b/src/main/java/org/onap/dcae/inventory/InventoryApplication.java index 259ce93..173d66b 100644 --- a/src/main/java/org/onap/dcae/inventory/InventoryApplication.java +++ b/src/main/java/org/onap/dcae/inventory/InventoryApplication.java @@ -37,6 +37,8 @@ import io.dropwizard.setup.Environment; import io.swagger.api.DcaeServiceTypesApi; import io.swagger.api.DcaeServicesApi; import io.swagger.api.DcaeServicesGroupbyApi; +import io.swagger.api.HealthCheckApi; +import io.swagger.api.ServiceHealthCheckApi; import io.swagger.api.factories.DcaeServicesApiServiceFactory; import io.swagger.jaxrs.config.BeanConfig; import io.swagger.jaxrs.listing.ApiListingResource; @@ -178,6 +180,8 @@ public class InventoryApplication extends Application<InventoryConfiguration> { environment.jersey().register(new DcaeServicesApi()); environment.jersey().register(new DcaeServiceTypesApi()); environment.jersey().register(new DcaeServicesGroupbyApi()); + environment.jersey().register(new HealthCheckApi()); + environment.jersey().register(new ServiceHealthCheckApi()); // https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5 environment.jersey().register(new ApiListingResource()); |