rest-api

Community

Standardize REST API design for clarity.

AuthorKubrickCode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a standard guide for designing and implementing REST APIs, ensuring consistency, discoverability, and ease of use for clients. It helps developers avoid common pitfalls like inconsistent URL structures, poor pagination, and unclear error responses, leading to more robust and developer-friendly APIs.

Core Features & Use Cases

  • Naming Conventions: Standardizes field naming, date formats, and resource terminology.
  • Pagination & Sorting: Implements industry-standard cursor-based pagination and flexible sorting options.
  • URL Structure: Guides on designing clear, hierarchical URLs for resources and actions.
  • Error Handling: Defines structured error responses using RFC 7807 ProblemDetail for consistent client feedback.
  • Use Case: A backend developer is designing a new REST API and needs to ensure it adheres to RESTful principles and industry best practices.
  • Use Case: An existing REST API has inconsistent patterns, and the team needs a guide to refactor and standardize its endpoints and responses.

Quick Start

Design REST API endpoints for a 'Product' resource, including pagination, sorting by createdAt, and filtering by price range.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rest-api
Download link: https://github.com/KubrickCode/general/archive/main.zip#rest-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository