Package ubic.gemma.rest
Class SearchWebService
java.lang.Object
ubic.gemma.rest.SearchWebService
Provides search capabilities to the RESTful API.
- Author:
- poirigui
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classRepresentation ofSearchResultfor the RESTful API.final classRepresents search settings for the RESTful API. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum number of search results.static final StringName used in the OpenAPI schema to identify result types as persearch(QueryArg, TaxonArg, PlatformArg, List, LimitArg, ExcludeArg)'s fourth argument. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearch(QueryArg query, TaxonArg<?> taxonArg, PlatformArg<?> platformArg, List<String> resultTypes, LimitArg limit, ExcludeArg<SearchResult<?>> excludeArg) Search everything subject to taxon and platform constraints.
-
Field Details
-
RESULT_TYPES_SCHEMA_NAME
Name used in the OpenAPI schema to identify result types as persearch(QueryArg, TaxonArg, PlatformArg, List, LimitArg, ExcludeArg)'s fourth argument.- See Also:
-
MAX_SEARCH_RESULTS
public static final int MAX_SEARCH_RESULTSMaximum number of search results.- See Also:
-
-
Constructor Details
-
SearchWebService
public SearchWebService()
-
-
Method Details
-
search
@GET @GZIP @Produces("application/json") public SearchWebService.SearchResultsResponseDataObject search(@QueryParam("query") QueryArg query, @QueryParam("taxon") TaxonArg<?> taxonArg, @QueryParam("platform") PlatformArg<?> platformArg, @QueryParam("resultTypes") List<String> resultTypes, @QueryParam("limit") LimitArg limit, @QueryParam("exclude") ExcludeArg<SearchResult<?>> excludeArg) Search everything subject to taxon and platform constraints.Naming the schema in for the result types is necessary so that it can be resolved in
CustomModelResolver.
-