API Documentation from Code
'Realistic data, not placeholder strings' produces documentation that developers can actually test with. The curl example makes the endpoint immediately testable.
Prompt
Generate API documentation for this endpoint:
\`\`\`
{{paste your route handler code}}
\`\`\`
Format as a markdown section with:
1. **Endpoint:** METHOD /path
2. **Description:** One sentence explaining what it does
3. **Authentication:** Required / Optional / None
4. **Request:**
- Headers (if any)
- URL parameters
- Query parameters
- Request body (JSON schema with types and examples)
5. **Response:**
- Success response (status code + JSON example with realistic data)
- Error responses (each possible error code with example)
6. **Example:** Complete curl command that works
Use realistic data in examples (not "string" or "example"). For a user endpoint, use "jane.doe@company.com", not "user@example.com".Variables to customize
{{paste your route handler code}}
Why this prompt works
'Realistic data, not placeholder strings' produces documentation that developers can actually test with. The curl example makes the endpoint immediately testable.
What you get when you save this prompt
Your workspace unlocks powerful tools to iterate and improve.
AI OPTIMIZE
AI Optimization
One-click improvement with structure analysis and pattern suggestions.
VERSION DIFF
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
ORGANIZE
Development
Code Review
Testing
Marketing
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
MCP
$ npm i -g @promptingbox/mcpClaude · Cursor · ChatGPT
Use Everywhere
Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.
Your prompts, organized
Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.