spring-rest

Generate Spring Boot 4.x REST controllers with RFC 9457 ProblemDetail error responses.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dprice-dev/claude-java-skills --skill spring-rest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-rest
Source: https://github.com/dprice-dev/claude-java-skills/tree/main/.claude/skills/spring-rest
Command: npx skills add https://github.com/dprice-dev/claude-java-skills --skill spring-rest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you implement consistent, enterprise-grade REST endpoints in Spring Boot 4.x without drifting into ad-hoc controllers, inconsistent response formats, or incorrect HTTP semantics.

Core Features & Use Cases

  • Controller patterns and endpoint wiring: Use @RestController, ResponseEntity/status annotations, request DTOs, and record-based request/response models for clean controller-layer code.
  • RFC 9457 Problem Detail error responses: Standardize validation and exception handling with ProblemDetail so clients get predictable error contracts.
  • Pagination and versioning: Implement Page<T> patterns with bounded sizes and support API evolution via URL path or content negotiation.
  • HTTP client integration for WebMVC: Use RestClient + HttpServiceProxyFactory with resilient error handling, retries, and circuit-breaking patterns aligned to Spring Boot 4.x constraints.

Quick Start

Use the spring-rest skill to design and implement a versioned endpoint with proper pagination, record DTOs, and RFC 9457 error handling for a Spring Boot 4.x controller.

Frequently Asked Questions about spring-rest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement RFC 9457 Problem Detail error responses in a Spring Boot REST controller?

Spring REST controllers can standardize validation and exception handling using RFC 9457 ProblemDetail objects, ensuring clients receive predictable error contracts across all endpoints.

What's the best way to structure request and response DTOs for a Spring Boot REST API?

Spring Boot REST APIs should use validated record-based DTOs for request and response models, combined with @RestController and ResponseEntity to maintain clean controller-layer code.

How do I set up bounded pagination with Pageable in a Spring Boot REST endpoint?

Spring Boot REST endpoints implement bounded pagination using Page<T> patterns with Pageable, allowing you to enforce maximum page sizes and return consistent paginated response contracts.

Does Spring Boot 4.x support RestClient with @HttpExchange for outbound HTTP calls in a WebMVC stack?

Spring Boot 4.x WebMVC supports HTTP client integration using RestClient with HttpServiceProxyFactory, enabling resilient error handling, retries, and circuit-breaking patterns for outbound calls.

How can I add API versioning to my Spring Boot REST API?

Spring Boot REST APIs support API evolution and versioning through URL path strategies or content negotiation, allowing you to introduce breaking changes without disrupting existing clients.