From f71d1ca6c73019c371e23bcd1ee2e07aa6258962 Mon Sep 17 00:00:00 2001 From: Julie Sullivan Date: Wed, 5 Feb 2020 10:01:06 +0000 Subject: [PATCH] change to Boolean. the query is looking for a Boolean or String but NOT a boolean. #522 --- .../cellbase/server/rest/clinical/ClinicalWSServer.java | 2 +- .../org/opencb/cellbase/server/rest/feature/GeneWSServer.java | 3 +-- .../opencb/cellbase/server/rest/feature/ProteinWSServer.java | 2 +- .../cellbase/server/rest/genomic/ChromosomeWSServer.java | 2 +- .../opencb/cellbase/server/rest/regulatory/TfWSServer.java | 4 ++-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/clinical/ClinicalWSServer.java b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/clinical/ClinicalWSServer.java index d1ad084fe5..e8854122f0 100644 --- a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/clinical/ClinicalWSServer.java +++ b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/clinical/ClinicalWSServer.java @@ -57,7 +57,7 @@ public ClinicalWSServer(@PathParam("version") value = "Retrieves all clinical variants", response = Variant.class, responseContainer = "QueryResponse") @ApiImplicitParams({ @ApiImplicitParam(name = "count", value = ParamConstants.COUNT_DESCRIPTION, - required = false, dataType = "boolean", paramType = "query", defaultValue = "false", + required = false, dataType = "java.lang.Boolean", paramType = "query", defaultValue = "false", allowableValues = "false,true"), @ApiImplicitParam(name = "source", value = ParamConstants.SOURCE, required = false, dataType = "java.util.List", paramType = "query"), diff --git a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/GeneWSServer.java b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/GeneWSServer.java index 4f3f35de88..458b724dc6 100755 --- a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/GeneWSServer.java +++ b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/GeneWSServer.java @@ -394,8 +394,7 @@ public Response getByEnsemblId(@PathParam("genes") @GET @Path("/{genes}/next") - @ApiOperation(httpMethod = "GET", value = "Get information about the specified gene(s) - Not yet implemented", - hidden = true) + @ApiOperation(httpMethod = "GET", value = "Get information about the specified gene(s) - Not yet implemented", hidden = true) public Response getNextByEnsemblId(@PathParam("genes") String genes) { try { parseQueryParams(); diff --git a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/ProteinWSServer.java b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/ProteinWSServer.java index cb9ba6f98e..47fc778549 100755 --- a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/ProteinWSServer.java +++ b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/feature/ProteinWSServer.java @@ -102,7 +102,7 @@ public Response getInfoByEnsemblId(@PathParam("proteins") value = "Get all proteins", response = Entry.class, responseContainer = "QueryResponse") @ApiImplicitParams({ @ApiImplicitParam(name = "count", value = ParamConstants.COUNT_DESCRIPTION, - required = false, dataType = "boolean", paramType = "query", defaultValue = "false", + required = false, dataType = "java.lang.Boolean", paramType = "query", defaultValue = "false", allowableValues = "false,true"), @ApiImplicitParam(name = "accession", value = ParamConstants.PROTEIN_ACCESSIONS, required = false, dataType = "java.util.List", paramType = "query"), diff --git a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/genomic/ChromosomeWSServer.java b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/genomic/ChromosomeWSServer.java index c9f08407ac..2eaf901a78 100644 --- a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/genomic/ChromosomeWSServer.java +++ b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/genomic/ChromosomeWSServer.java @@ -71,7 +71,7 @@ public Response getModel() { responseContainer = "QueryResponse") @ApiImplicitParams({ @ApiImplicitParam(name = "count", value = ParamConstants.COUNT_DESCRIPTION, - required = false, dataType = "boolean", paramType = "query", defaultValue = "false", + required = false, dataType = "java.lang.Boolean", paramType = "query", defaultValue = "false", allowableValues = "false,true") }) public Response getAll(@QueryParam("exclude") diff --git a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/regulatory/TfWSServer.java b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/regulatory/TfWSServer.java index 38ca66c3e7..133c3199e2 100755 --- a/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/regulatory/TfWSServer.java +++ b/cellbase-server/src/main/java/org/opencb/cellbase/server/rest/regulatory/TfWSServer.java @@ -59,7 +59,7 @@ public TfWSServer(@PathParam("version") response = RegulatoryFeature.class, responseContainer = "QueryResponse") @ApiImplicitParams({ @ApiImplicitParam(name = "count", value = ParamConstants.COUNT_DESCRIPTION, - required = false, dataType = "boolean", paramType = "query", defaultValue = "false", + required = false, dataType = "java.lang.Boolean", paramType = "query", defaultValue = "false", allowableValues = "false,true"), @ApiImplicitParam(name = "region", value = ParamConstants.REGION_DESCRIPTION, required = false, dataType = "java.util.List", paramType = "query") @@ -102,7 +102,7 @@ public Response getAllByTfbs(@PathParam("tf") responseContainer = "QueryResponse") @ApiImplicitParams({ @ApiImplicitParam(name = "count", value = ParamConstants.COUNT_DESCRIPTION, - required = false, dataType = "boolean", paramType = "query", defaultValue = "false", + required = false, dataType = "java.lang.Boolean", paramType = "query", defaultValue = "false", allowableValues = "false,true"), @ApiImplicitParam(name = "transcripts.id", value = ParamConstants.TRANSCRIPT_ENSEMBL_IDS, required = false, dataType = "java.util.List", paramType = "query"),