mohitdjcet/fastAPI-Tutorial ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple FastAPI project that shows the basics clearly, since this is for learning and trying things out.
I want one main app file that runs an API with a few easy endpoints, including a home route, a health check, and a couple of example routes that return JSON. It should also show how to handle path parameters and query parameters, plus a small example of posting data and getting a response back. Please make the code clean and easy to follow, with a few comments where it helps.
If it makes sense, include sample data in memory so the app can demonstrate reading, adding, updating, and deleting items without needing a database. I’d also like the app to be ready to run right away with clear instructions in the file comments or a short note if needed. If you need to check current FastAPI docs online for best practices, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit