New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Guide for designing RESTful APIs covering resource naming, status codes, versioning, and OpenAPI documentation.

skills.sh installs
2.1K
GitHub stars
387
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers resource modeling, HTTP methods, status codes, versioning, pagination, filtering, and documentation for new or existing APIs
  • Includes reference guides for resource naming, request examples, query parameters, response formats, status codes, OpenAPI, and a complete Express.js example
  • Enforces nouns for resources, plural collection names, appropriate status codes, a maximum of two nesting levels, and no verbs in endpoint paths
  • Designed for teams creating new APIs, designing endpoints, or refactoring existing API architecture

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill rest-api-design -y

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

Files

REST API Design

Table of Contents

Overview

Design REST APIs that are intuitive, consistent, and follow industry best practices for resource-oriented architecture.

When to Use

  • Designing new RESTful APIs
  • Creating endpoint structures
  • Defining request/response formats
  • Implementing API versioning
  • Documenting API specifications
  • Refactoring existing APIs

Quick Start

Minimal working example:

✅ Good Resource Names (Nouns, Plural)
GET    /api/users
GET    /api/users/123
GET    /api/users/123/orders
POST   /api/products
DELETE /api/products/456

❌ Bad Resource Names (Verbs, Inconsistent)
GET    /api/getUsers
POST   /api/createProduct
GET    /api/user/123  (inconsistent singular/plural)

Reference Guides

Detailed implementations in the references/ directory:

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Technical Documentation
First seen
Apr 16, 2026

More from aj-geddes/useful-ai-prompts

All 258

Similar to Rest Api Design

More Backend & APIs