giuseppe-trisciuoglio avatar

Spring Boot Rest Api Standards

REST API design standards for Spring Boot covering URLs, DTOs, validation, errors, pagination, and security headers.

CCM score
49 of 100
skills.sh installs
4.4K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers URL design, HTTP methods, status codes, DTOs, validation, global error handling, pagination, and CORS and security headers
  • Includes CRUD controller, request and response DTO, and @RestControllerAdvice exception handler examples in Java
  • Enforces that entities are never exposed directly, all large result sets are paginated, and sensitive data stays out of responses and logs
  • Designed for developers building or reviewing REST endpoints in Spring Boot projects

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-rest-api-standards -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Spring Boot REST API Standards

Overview

REST API design standards for Spring Boot covering URL design, HTTP methods, status codes, DTOs, validation, error handling, pagination, and security headers.

When to Use

  • Creating REST endpoints and API routes
  • Designing DTOs and API contracts
  • Implementing error handling and validation
  • Setting up pagination and filtering
  • Configuring security headers and CORS
  • Reviewing REST API architecture

Instructions

To Build RESTful API Endpoints

Follow these steps to create well-designed REST API endpoints:

  1. Design Resource-Based URLs

    • Use plural nouns for resource names
    • Follow REST conventions: GET /users, POST /users, PUT /users/{id}
    • Avoid action-based URLs like /getUserList
  2. Implement Proper HTTP Methods

    • GET: Retrieve resources (safe, idempotent)
    • POST: Create resources (not idempotent)
    • PUT: Replace entire resources (idempotent)
    • PATCH: Partial updates (not idempotent)
    • DELETE: Remove resources (idempotent)

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Backend & APIs, Java & JVM
First seen
Apr 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Spring Boot Rest Api Standards

More Backend & APIs