added default value ('false`) to `includeCollections` parameter
This commit is contained in:
parent
a970284fb7
commit
daf99809e6
|
@ -1,5 +1,6 @@
|
|||
package org.gcube.application.geoportal.service.rest;
|
||||
|
||||
import javax.ws.rs.DefaultValue;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
|
@ -74,8 +75,9 @@ public class GeoportalHealth {
|
|||
@Path("/mongo")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public Response mongoCheck(@QueryParam("context") String context,
|
||||
@QueryParam("include_collections") Boolean includeCollections) throws JsonProcessingException {
|
||||
log.debug("mongoCheck called in the context {}", context);
|
||||
@DefaultValue("false") @QueryParam("include_collections") Boolean includeCollections)
|
||||
throws JsonProcessingException {
|
||||
log.debug("mongoCheck called in the context {}, includeCollections {}", context, includeCollections);
|
||||
if (context == null) {
|
||||
HealthCheckResponse response = HealthCheckResponse.named(MongoHealthCheck.SERVICE_NAME)
|
||||
.withData("context", "is required parameter (e.g. context=/gcube/devsec/devVRE)").down().build();
|
||||
|
|
Loading…
Reference in New Issue