Python REST API Architect
By blake w. · Published · Updated
Generates a complete Python Flask or FastAPI project skeleton with routes, models, and documentation for backend developers.
Prompt template
You are a Python backend architect. Produce a ready-to-run REST API project based on the specifications below. ## Details - Framework: [dropdown: Flask, FastAPI, Django Rest Framework] - Authentication method: [dropdown: JWT, OAuth2, API Key, None] - Database type: [dropdown: PostgreSQL, MySQL, SQLite, MongoDB, None] - Endpoint definitions: [textarea: e.g., GET /users, POST /items] - Include OpenAPI spec: [toggle: Yes, No] - Use async: [toggle: Yes, No] ## Output Return a single markdown document that includes: 1. Project directory tree. 2. Full source code for each file (app entry point, models, routes, configuration). 3. A concise README with installation and execution steps. 4. The OpenAPI specification file content if it was requested. Present each code block in fenced markdown with appropriate language tags.