Skip to content

Commit

Permalink
set limit to be 10 instead of 1000. this is just for REST so 10 is a …
Browse files Browse the repository at this point in the history
…sufficient default value. #522
  • Loading branch information
julie-sullivan committed Jan 24, 2020
1 parent 87a027c commit da745c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public class GenericRestWSServer implements IWSServer {
protected DBAdaptorFactory dbAdaptorFactory;
protected Monitor monitor;

private static final int LIMIT_DEFAULT = 1000;
private static final int LIMIT_DEFAULT = 10;
private static final int LIMIT_MAX = 5000;
private static final String ERROR = "error";
private static final String OK = "ok";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ public Response groupBy(@DefaultValue("")
required = false, dataType = "java.util.List", paramType = "query")
})
public Response getAll() {
// public Response getAll(@ApiParam(value = "String with the list of biotypes to return")
// @DefaultValue("") @QueryParam("biotype") String biotype) {
try {
parseQueryParams();
GeneDBAdaptor geneDBAdaptor = dbAdaptorFactory.getGeneDBAdaptor(this.species, this.assembly);
Expand Down Expand Up @@ -797,22 +795,6 @@ public Response getAllTfbs(@PathParam("geneId")
}
}


// @GET
// @Path("/{geneId}/mirna_target")
// @ApiOperation(httpMethod = "GET", value = "Get all microRNAs binding sites for this gene(s). Not yet implemented",
// hidden = true)
// public Response getAllMirna(@PathParam("geneId") String geneId) {
// try {
// parseQueryParams();
// MirnaDBAdaptor mirnaDBAdaptor = dbAdaptorFactory.getMirnaDBAdaptor(this.species, this.assembly);
// return createOkResponse(mirnaDBAdaptor.getAllMiRnaTargetsByGeneNameList(Splitter.on(",").splitToList(geneId)));
// } catch (Exception e) {
// return createErrorResponse(e);
// }
// }


@GET
@Path("/{geneId}/protein")
@ApiOperation(httpMethod = "GET", value = "Return info of the corresponding proteins", response = Entry.class,
Expand Down

0 comments on commit da745c5

Please sign in to comment.