From java-spring
Scans Spring Boot @RestController/@Controller classes for REST endpoints and prints a route table with methods, paths, handlers. Notes issues like missing @Valid/auth and totals endpoints.
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-spring# /java-spring:routes Scan the project and print all REST API endpoints. ## Instructions 1. Find all `@RestController` and `@Controller` classes in `src/main/java/` 2. For each controller, extract: - Class-level `@RequestMapping` prefix (if any) - Method-level `@GetMapping`, `@PostMapping`, `@PutMapping`, `@DeleteMapping`, `@PatchMapping` - Method signature (parameter names and types) - Return type 3. Print a route table: 4. After the table, note any issues: - Missing `@Valid` on `@RequestBody` parameters - Methods returning `void` or raw types instead of `Response...
Share bugs, ideas, or general feedback.
Scan the project and print all REST API endpoints.
Find all @RestController and @Controller classes in src/main/java/
For each controller, extract:
@RequestMapping prefix (if any)@GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMappingPrint a route table:
METHOD PATH HANDLER
------ ---- -------
GET /api/products ProductController#findAll
GET /api/products/{id} ProductController#findById
POST /api/products ProductController#create
PUT /api/products/{id} ProductController#update
DELETE /api/products/{id} ProductController#delete
After the table, note any issues:
@Valid on @RequestBody parametersvoid or raw types instead of ResponseEntity<T>/admin, /actuator)Summary line: total endpoint count, controllers scanned.