Class QueryController
java.lang.Object
org.chenile.http.handler.ControllerSupport
org.chenile.configuration.controller.QueryController
@RestController
@ChenileController(value="chenileMybatisQuery",
serviceName="searchService",
serviceModule="query")
public class QueryController
extends ControllerSupport
This sets up a query service automatically. Developers can use this optionally instead of
writing the controller themselves. It is recommended to write your own controllers if
you want to use additional annotations such as chenile security etc.
-
Field Summary
Fields inherited from class ControllerSupport
service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearch(HttpServletRequest request, String queryName, SearchRequest<Map<String, Object>> searchRequest) Methods inherited from class ControllerSupport
process, process
-
Constructor Details
-
QueryController
public QueryController()
-
-
Method Details
-
search
@PostMapping("/q/{queryName}") public ResponseEntity<GenericResponse<SearchResponse>> search(HttpServletRequest request, @PathVariable String queryName, @RequestBody SearchRequest<Map<String, Object>> searchRequest)
-