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
> /plugin marketplace add ducpm2303/claude-java-plugins

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.

@ducpm2303
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.

1726 skills6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
17
Star history of ducpm2303/claude-java-plugins on GitHub, a chart by star-history.com

Other commands on claude-java-plugins.

check

check

Command

Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

audit

audit

Command

Full quality audit — runs security scan, performance check, and test coverage analysis in sequence and produces a combined report

run

run

Command

Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command