Any
💻 Coding & Dev
Intermediate
Design a REST API Endpoint
Get a fully-designed REST API endpoint with request/response schemas.
The Prompt
Design a REST API endpoint for the following feature. Feature description: [what the endpoint does] Application type: [web app / mobile app / internal API] Framework: [Express / FastAPI / Laravel / Rails / etc.] Database: [PostgreSQL / MySQL / MongoDB] Deliver: 1. HTTP method and URL path (with route parameters) 2. Request body schema (with types and validation rules) 3. Query parameters (if applicable) 4. Response schema for success (200/201) 5. Response schema for common errors (400, 401, 404, 500) 6. Authentication method needed 7. Sample code for the route handler
📝 Fill in the blanks
Replace these placeholders with your own content:
[what the endpoint does]
[web app / mobile app / internal API]
[Express / FastAPI / Laravel / Rails / etc.]
[PostgreSQL / MySQL / MongoDB]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into Any
Open your preferred AI assistant and paste the prompt to get started.