jyjeanne/ai-setup-forge/api-rest-endpoint-design

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

To design and implement a RESTful API endpoint that is consistent, scalable, and follows industry best practices for HTTP methods, status codes, and URL structure. Use when: When creating a new API resource or sub-resource; When refactoring existing endpoints to meet REST standards; When defining the contract between frontend and backend.

Install

npx vskill@latest install jyjeanne/ai-setup-forge/api-rest-endpoint-design

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/api-rest-endpoint-design.

Purpose

To design and implement a RESTful API endpoint that is consistent, scalable, and follows industry best practices for HTTP methods, status codes, and URL structure.

When to Use

  • When creating a new API resource or sub-resource.
  • When refactoring existing endpoints to meet REST standards.
  • When defining the contract between frontend and backend.

Procedure

  1. Identify Resource: Determine the noun representing the resource (e.g., /users, /orders). Use plural nouns.
  2. Select HTTP Method:
  • GET for retrieval.
  • POST for creation.
  • PUT for full replacement.
  • PATCH for partial update.
  • DELETE for removal.
  1. Define URL Structure:
  • Use hierarchy: /resources/{id}/sub-resources.
  • Avoid verbs in URLs (e.g., use POST /users/login only if session is the resource, otherwise standard RPC might be an exception, but prefer REST).
  1. Define Request Payload:
  • Specify JSON body structure for POST/PUT/PATCH.
  • Define query parameters for GET (filtering, pagination, sorting).
  1. Define Response Structure:
  • Standardize success response (e.g., { data: ... }).
  • Standardize error response (e.g., { error: { code: ..., message: ... } }).
  1. Select Status Codes:
  • 200 (OK), 201 (Created), 204 (No Content).
  • 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found).
  • 500 (Internal Server Error).

Constraints

  • Do NOT expose internal database IDs if UUIDs are available/preferred.
  • Do NOT mix snake_case and camelCase in JSON responses (prefer camelCase for JS/Node).
  • Ensure all endpoints are stateless.

Expected Output

A fully defined route handler (or controller method) with request validation, business logic invocation, and a standardized JSON response.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/api-rest-endpoint-design/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/api-rest-endpoint-design)

Something wrong with this skill or its page? Tell us.