add responseformat endpoint method

This commit is contained in:
Zellweger Christof Ralf
2016-04-07 10:51:59 +02:00
parent 6a87141f9b
commit 9ca5ad0a52

View File

@ -352,6 +352,16 @@ public class QueryRestController {
return Lists.newArrayList(Ordering.values());
}
/**
* Returns the current list of {@link ResponseFormat}s available.
*
* @return list of {@link Ordering}s as String array
*/
@RequestMapping(value = "responseformat", method = {RequestMethod.GET}, produces = {MediaType.APPLICATION_JSON_VALUE})
public @ResponseBody List<ResponseFormat> getResponseFormatValues() {
return Lists.newArrayList(ResponseFormat.values());
}
/**
* Returns the current list of {@link QueryField}s available.
*