api-design-guide

Codify RESTful API design best practices for resource modeling, URLs, HTTP methods, pagination, filtering, versioning, and error handling.

Updated Jan 23, 2026
Ready to run
npx skills add https://github.com/Gdm0714/claude-code-resource --skill api-design-guide
πŸ’¬ Prompt for ChatGPT / Claude Chatβ–Ό
Please help me install this Agent Skill.
Skill: api-design-guide
Source: https://github.com/Gdm0714/claude-code-resource/tree/main/skills/api-design-guide
Command: npx skills add https://github.com/Gdm0714/claude-code-resource --skill api-design-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

RESTful API μ„€κ³„μ˜ λ³΅μž‘μ„±μ„ 쀄이고, 직관적이고 μΌκ΄€λœ API 섀계λ₯Ό μ΄‰μ§„ν•©λ‹ˆλ‹€.

Core Features & Use Cases

  • μΌκ΄€λœ URL 섀계 원칙, HTTP λ©”μ„œλ“œμ˜ λͺ…ν™•ν•œ λ§€ν•‘, κ°•λ ₯ν•œ μ—λŸ¬ 처리, 버전 κ΄€λ¦¬μ˜ ν™•μž₯μ„±.
  • μ‚¬μš© 사둀: μ‚¬μš©μž, μƒν’ˆ, μ£Όλ¬Έ λ“±μ˜ λ¦¬μ†ŒμŠ€μ— λŒ€ν•œ 예츑 κ°€λŠ₯ν•œ μ—”λ“œν¬μΈνŠΈλ₯Ό μ„€κ³„ν•˜κ³  νŽ˜μ΄μ§€λ„€μ΄μ…˜, 필터링, 쀑첩 λ¦¬μ†ŒμŠ€λ₯Ό μ μš©ν•©λ‹ˆλ‹€.

Quick Start

Design a RESTful API for a basic e-commerce app with users, products, and orders following these principles.

Frequently Asked Questions about api-design-guide

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

FAQPage Schema
What are the key REST API design principles for consistent URL structures and HTTP methods?β–Ό

REST API design principles map resource modeling to predictable URL structures and apply standard HTTP methods like GET, POST, PUT, and DELETE for intuitive endpoint behavior. This ensures consistent resource naming, clear action mapping, and predictable interactions across typical API scenarios.

How do I handle errors and versioning in a RESTful API?β–Ό

Error handling and versioning in a RESTful API require structured error responses and scalable versioning strategies to manage changes. Applying these guidelines ensures robust error reporting and backward-compatible API evolution without disrupting existing consumers.

What is the best way to design pagination and filtering for nested REST resources?β–Ό

Designing pagination and filtering for nested REST resources involves applying consistent query parameters to manage large datasets and retrieve specific subsets. This approach maintains predictable endpoint behavior across complex resource hierarchies like users, products, and orders.

Can I apply these REST API guidelines to an e-commerce application with users, products, and orders?β–Ό

These REST API guidelines apply directly to an e-commerce application by structuring users, products, and orders as predictable endpoints. You can implement resource modeling, pagination, filtering, and nested resources to build an intuitive and consistent API.

When should I use PUT versus PATCH for resource updates in REST API design?β–Ό

Using PUT versus PATCH in REST API design depends on whether you are replacing a full resource or applying partial modifications. Following standard HTTP method usage guidelines ensures predictable and intuitive state transitions for API consumers.