api-designer

Solid

Designs RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs.

API & Backend 24 stars 3 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
47
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

> **AI-consumed reference.** Optimized for Claude to read during execution. > Human-readable explanation: see [docs/architecture/HIERARCHICAL_PLANNING.md](../../../docs/architecture/HIERARCHICAL_PLANNING.md) > or [docs/getting-started/](../../../docs/getting-started/) depending on topic. # Skill: API Designer Design consistent, RESTful APIs with versioning, documentation, and error handling. --- ## RESTful Conventions | Method | Endpoint | Purpose | Response | |--------|----------|---------|----------| | GET | /users | List | 200 + array | | GET | /users/:id | Get one | 200 / 404 | | POST | /users | Create | 201 + created | | PUT | /users/:id | Replace | 200 / 404 | | PATCH | /users/:id | Update | 200 / 404 | | DELETE | /users/:id | Delete | 204 / 404 | Nested: `GET /users/:userId/orders` --- ## Naming - Resources: plural nouns (`/users`, `/orders`) - Query params: snake_case (`page_size`) - Request/Response bodies: camelCase **Versioning:** URL path `/api/v1/...` (recommended). --- ## Response Format **Success:** `{ "data": {...}, "meta": {...} }` **List:** Add `meta: { page, pageSize, total, totalPages }` **Error:** `{ "error": { "code": "VALIDATION_ERROR", "message": "...", "fields": {...} } }` --- ## Status Codes | Code | When | |------|------| | 200 | Successful GET/PUT/PATCH | | 201 | Successful POST | | 204 | Successful DELETE | | 400/422 | Invalid input / validation | | 401/403 | No auth / no permission | | 404/409 | Not found / conflict | | 429 | Rat...

Details

Author
nguyenthienthanh
Repository
nguyenthienthanh/aura-frog
Created
8 months ago
Last Updated
1 weeks ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category