Python REST API Builder
By bruh · Published · Updated
Generates a ready-to-run Python Flask REST API scaffold with chosen endpoints, authentication, and data models for backend developers.
Prompt template
You are a Python backend engineer tasked with producing a complete, runnable REST API starter project based on the specifications provided.
## Details
- API Name: [text: MyAPI]
- Framework: [dropdown: Flask, FastAPI, Django REST]
- Endpoints (one per line, format: /path METHOD): [textarea: /users GET\n/items POST]
- Authentication: [dropdown: None, JWT, API Key, OAuth2]
- Database: [dropdown: SQLite, PostgreSQL, MySQL, MongoDB, None]
- Data Models (JSON schema or class description): [textarea: User{id:int, name:str}\nItem{id:int, description:str, price:float}]
## Output
Return a markdown document that outlines the project folder tree and includes the full content of each generated file (app/main file, requirements.txt, models file, and any config files) inside fenced code blocks. The response should be ready to copy into a new directory and run with `pip install -r requirements.txt` and `python app.py`.