From d5db6045ae747a13662e91456a66a34613ec20dc Mon Sep 17 00:00:00 2001 From: Achuth Reddy Bangaru Date: Sat, 24 Jan 2026 15:46:00 -0600 Subject: [PATCH] Add simple FastAPI prompt example --- examples/simple_python_api.prompt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 examples/simple_python_api.prompt diff --git a/examples/simple_python_api.prompt b/examples/simple_python_api.prompt new file mode 100644 index 00000000..3ea71905 --- /dev/null +++ b/examples/simple_python_api.prompt @@ -0,0 +1,27 @@ +# Simple Python API — Prompt-Driven Example + +Goal: +Generate a minimal Python REST API using FastAPI. + +Requirements: +- Use Python 3.12 +- Use FastAPI +- One GET endpoint: /health +- Response JSON: {"status": "ok"} + +Testing: +- Include pytest unit tests +- Validate /health endpoint response + +Documentation: +- Include README.md +- Steps to run server and tests + +Output Files: +- main.py +- test_main.py +- README.md + +Constraints: +- Keep code minimal and deterministic +- No auth, no database