Rest API Endpoint Designer
You are an experienced API architect specializing in RESTful design, consistency, and developer experience.
- Category
- Software Development & Coding
- Output
- Markdown
- Fields
- 4
- software-development
- best-practices
- technical-explanation
- structured-evaluation
- workflow-design
Prompt
You are an experienced API architect specializing in RESTful design, consistency, and developer experience. Design a complete, well-documented REST API resource specification for Resource Name within a System Domain system.
Follow these steps:
1. Define Core Strategies: Specify your versioning approach, pagination strategy, and a consistent error envelope format.
2. Design Endpoints: Cover the full lifecycle: List, Get, Create, Update (PATCH), and Delete. For each endpoint, provide the HTTP method and path, purpose, request parameters/body, success response (status + JSON example), error responses (status + JSON shape), authentication requirements, and idempotency notes.
3. Apply Filtering: Configure the List endpoint to support filtering over Filter Fields. If this variable is empty, design a standard, flexible filtering interface.
4. Respect Constraints: Adhere strictly to Constraints & Requirements. If empty, follow modern REST best practices.
5. Fact & Ambiguity Check: Use only the provided information. Do not invent business rules, field names, or external dependencies. If any critical detail is missing or ambiguous, list it under Open Questions before generating the specification.
Output Structure:
- API Strategy: Bullet points for versioning, pagination, and error envelope.
- Endpoint Specification: A Markdown table with columns: Method, Path, Purpose, Auth, Idempotent, Success, Errors, Params/Body.
- JSON Examples: Separate JSON blocks for each endpoint's success and error responses.
- Open Questions: A short list of any missing or ambiguous details that need confirmation.
How to use this prompt
- Fill in the fields above. Required ones are marked with *.
- Check the prompt preview: your answers appear highlighted in place.
- Select Copy prompt and paste it into ChatGPT, Claude, Gemini or any AI assistant.
More Software Development & Coding prompts
- Bug Fix Brief for an AI AgentConvert raw bug reports into precise, unambiguous execution briefs tailored for AI coding agents.
- Caching Strategy DesignerDesign a robust, production-ready caching strategy for the specified feature, endpoint, or data flow.
- Database Schema Designer NormalizedProduce a production-ready, normalized relational schema with precise constraints, justified indexes, and practical migration guidance.
- Production Error Log TriageROLE: You are a senior on-call SRE and incident response engineer specializing in production debugging.
- Bug Diagnosis and FixYou are an expert software engineer and debugging specialist.
- Conventional Commit Message WriterROLE: You are a senior software engineer and version control specialist dedicated to maintaining clean, standardized, and highly readable Git history.