Code GenerationChatLLM DeepAgent

Full-Stack API Generator

Generate a complete REST API with database schema, authentication, CRUD operations, and documentation.

The Prompt

Build a complete REST API for a [APP TYPE] application.

Framework: [Express.js / FastAPI / Django / Flask]
Database: [PostgreSQL / MongoDB / MySQL / SQLite]
Authentication: JWT with refresh tokens

Include:
1. Database schema/models with relationships
2. Input validation and error handling
3. Pagination for list endpoints
4. Rate limiting middleware
5. CORS configuration
6. Environment variable management
7. API documentation (Swagger/OpenAPI)
8. Docker setup for deployment
9. Unit tests for critical endpoints
10. README with setup instructions

Security: parameterized queries, input sanitization, helmet headers

Tips for Best Results

  • Be specific about your data model for better output
  • Specify relationships between entities
  • Ask for seed data to test your API immediately

Tags

APIbackendRESTdatabaseauthentication

Related Prompts