Modifier and Type | Class and Description |
---|---|
static class |
SearchWebService.SearchResultsResponseDataObject |
static class |
SearchWebService.SearchResultValueObject<T extends IdentifiableValueObject<?>>
Representation of
SearchResult for the RESTful API. |
class |
SearchWebService.SearchSettingsValueObject
Represents search settings for the RESTful API.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SEARCH_RESULTS
Maximum number of search results.
|
static String |
RESULT_TYPES_SCHEMA_NAME
Name used in the OpenAPI schema to identify result types as per
search(String, TaxonArg, PlatformArg, List, LimitArg) 's
fourth argument. |
Constructor and Description |
---|
SearchWebService() |
Modifier and Type | Method and Description |
---|---|
SearchWebService.SearchResultsResponseDataObject |
search(String query,
TaxonArg<?> taxonArg,
PlatformArg<?> platformArg,
List<String> resultTypes,
LimitArg limit)
Search everything subject to taxon and platform constraints.
|
public static final String RESULT_TYPES_SCHEMA_NAME
search(String, TaxonArg, PlatformArg, List, LimitArg)
's
fourth argument.public static final int MAX_SEARCH_RESULTS
@GET @Produces(value="application/json") public SearchWebService.SearchResultsResponseDataObject search(@QueryParam(value="query") String query, @QueryParam(value="taxon") TaxonArg<?> taxonArg, @QueryParam(value="platform") PlatformArg<?> platformArg, @QueryParam(value="resultTypes") List<String> resultTypes, @QueryParam(value="limit") @DefaultValue(value="100") LimitArg limit)
Naming the schema in for the result types is necessary so that it can be resolved in SearchResultTypeAllowableValuesModelResolver
.
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.