get_http_endpoints
Assembles the HTTP route table from a Java project, listing endpoints with method, path, handler, and framework. Supports Spring and JAX-RS annotations.
Instructions
Assemble the project's HTTP route table.
USAGE: get_http_endpoints() OUTPUT: route -> handler entries (HTTP method, effective path, handler method, framework, location), sorted by path.
Supports:
Spring verb shortcuts: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMapping; the class-level @RequestMapping value is composed as the path prefix.
JAX-RS (jakarta.ws.rs and javax.ws.rs): @GET/@POST/... verbs with class-level and method-level @Path composed.
Method-level @RequestMapping(method=...) routes are not assembled; verb-shortcut annotations are the supported Spring form.
Projects without these frameworks return an empty table.
Options:
maxResults: cap the reported endpoints (default 200)
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxResults | No | Maximum endpoints to return (default 200) |