Class QueryMCPController
java.lang.Object
org.chenile.http.handler.ControllerSupport
org.chenile.configuration.query.mcp.QueryMCPController
@RestController
@ChenileController(value="chenileMcpMybatisQuery",
serviceName="searchService")
public class QueryMCPController
extends ControllerSupport
MCP-enabled Query controller. Applications that need MCP metadata should use
this optional module instead of exposing MCP annotations from the base query
controller.
-
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
-
QueryMCPController
public QueryMCPController()
-
-
Method Details
-
search
@PostMapping("/mcp/q/{queryName}") public ResponseEntity<GenericResponse<SearchResponse>> search(HttpServletRequest request, @PathVariable String queryName, @RequestBody SearchRequest<Map<String, Object>> searchRequest)
-
CHENILE