Class QueryController
java.lang.Object
org.chenile.http.handler.ControllerSupport
org.chenile.configuration.controller.QueryController
@RestController
@ChenileController(value="chenileMybatisQuery",
serviceName="searchService")
public class QueryController
extends ControllerSupport
This sets up a query service. This can be used by pointing this service to
a database that can be configured in application.yml.
-
Field Summary
Fields inherited from class org.chenile.http.handler.ControllerSupport
service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsearch
(HttpServletRequest request, String queryName, SearchRequest<Map<String, Object>> searchRequest) Methods inherited from class org.chenile.http.handler.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)
-