Skip to content
Development
Command

/routes

List all REST endpoints in the Spring Boot project — scans controllers and prints a route table

From plugin
claude-java-plugins
175 skills6 agents5 commands
Install
$ npx -y skills add ducpm2303/claude-java-plugins --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/routes

Context preview

What this command does when you run it.

List all REST endpoints in the Spring Boot project — scans controllers and prints a route table

Command definition

routes.md
description: List all REST endpoints in the Spring Boot project — scans controllers and prints a route table

/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:

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

4. After the table, note any issues:

  • Missing `@Valid` on `@RequestBody` parameters
  • Methods returning `void` or raw types instead of `ResponseEntity<T>`
  • Endpoints with no authentication that look sensitive (e.g., `/admin`, `/actuator`)

5. Summary line: total endpoint count, controllers scanned.

Ships withclaude-java-plugins

A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.

Get the whole plugin, auto-invoked
Stats
17
Stars
0
Views
0
Forks
Maintained
Maintenance
Shell
Language
4mo ago
Last commit
4mo ago
Created

Repo: ducpm2303/claude-java-plugins