use of org.nextprot.api.solr.QueryRequest in project nextprot-api by calipho-sib.
the class ExportController method streamEntries.
@RequestMapping(value = "/export/entries", method = { RequestMethod.GET })
public void streamEntries(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "query", required = false) String query, @RequestParam(value = "chromosome", required = false) String chromosome, @RequestParam(value = "listId", required = false) String listId, @RequestParam(value = "queryId", required = false) String queryId, @RequestParam(value = "sparql", required = false) String sparql, @RequestParam(value = "filter", required = false) String filter, @RequestParam(value = "sort", required = false) String sort, @RequestParam(value = "order", required = false) String order, @RequestParam(value = "quality", required = false) String quality) {
QueryRequest qr = buildQueryRequest(request, query, listId, queryId, sparql, chromosome, filter, quality, sort, order);
streamEntryService.streamQueriedEntries(qr, NextprotMediaType.valueOf(request), "entry", response);
}
Aggregations