NeLocker
☰
Library
Free Prompts
Pricing
Supporters
Our Stance
💡
Want a prompt that isn't here?
Tell us — we build the vault around you.
Suggest a prompt
×
← NeLocker vault
API Design Spec
Designs a clean, consistent API with the contract written out.
Universal
Claude
ChatGPT
Gemini
Grok
💡 The original prompt — works in any model. Start here, then tune per model.
Fill in the blanks — your answers carry across every model
Requirements
Context
Design a clean API for this: What it needs to do: {REQUIREMENTS} Consumers + constraints: {CONTEXT} Produce: 1. The resource model (nouns) and the key operations. 2. Endpoints with method, path, request, response, and status codes. 3. Error shape + the main error cases. 4. Pagination / filtering / auth approach, stated once and applied consistently. 5. Two design decisions you made and the trade-off behind each. Favor consistency and the principle of least surprise.
📋 Copy
↩ Reset
fill the blanks above ↑
💬
Subscribe
to read & share member tweaks for this prompt.