# Fastapi Smoke Test Api Generated by ARES for the request: > build app fastapi smoke test api ## Contract - Stack: Python + FastAPI - Workspace: `inventions/fastapi-smoke-test-api-02` - Entrypoint: `app.main:app` - Verification: compile Python sources and run structural unit tests ## File Layout - `app/main.py` creates the FastAPI application instance. - `app/api/routes.py` defines the HTTP routes. - `tests/test_contract.py` validates the scaffold contract without requiring third-party imports. - `run_demo.py` prints the registered routes after dependencies are installed. ## Quick Start ```bash python -m pip install -e . python run_demo.py python -m uvicorn app.main:app --reload ``` ## Verification ```bash "C:\Users\cgb2\AppData\Local\Programs\Python\Python313\python.exe" -m py_compile "run_demo.py" "C:\Users\cgb2\AppData\Local\Programs\Python\Python313\python.exe" -m compileall "app" "tests" "C:\Users\cgb2\AppData\Local\Programs\Python\Python313\python.exe" -m unittest discover -s tests -p test_*.py ``` ## Notes Local-first FastAPI starter scaffold generated by ARES with a strict developer contract, README, and structural verification.
| Path | Bytes |
|---|---|
| .gitignore | 45 |
| __pycache__/run_demo.cpython-313.pyc | 1286 |
| app/__init__.py | 62 |
| app/__pycache__/__init__.cpython-313.pyc | 181 |
| app/__pycache__/main.cpython-313.pyc | 710 |
| app/api/__init__.py | 61 |
| app/api/__pycache__/__init__.cpython-313.pyc | 184 |
| app/api/__pycache__/routes.cpython-313.pyc | 1112 |
| app/api/routes.py | 654 |
| app/main.py | 464 |
| invention.json | 2772 |
| pyproject.toml | 586 |
| README.md | 1207 |
| run_demo.py | 642 |
| tests/__pycache__/test_contract.cpython-313-pytest-9.0.2.pyc | 2356 |
| tests/__pycache__/test_contract.cpython-313.pyc | 2197 |
| tests/test_contract.py | 1045 |
{
"id": "fastapi-smoke-test-api-02",
"title": "Fastapi Smoke Test Api",
"summary": "Local-first FastAPI starter scaffold generated by ARES with a strict developer contract, README, and structural verification.",
"source": "developer_build",
"kind": "invention",
"path": "inventions/fastapi-smoke-test-api-02",
"created_at": "2026-03-09 13:46:30",
"updated_at": "2026-03-09 13:46:30",
"stack": "python_fastapi",
"request": "build app fastapi smoke test api",
"entrypoint": "app.main:app",
"build_contract": {
"stack": "Python/FastAPI",
"required_files": [
"README.md",
"pyproject.toml",
".gitignore",
"app/__init__.py",
"app/main.py",
"app/api/__init__.py",
"app/api/routes.py",
"tests/test_contract.py",
"run_demo.py"
],
"verification_commands": [
"\"C:\\Users\\cgb2\\AppData\\Local\\Programs\\Python\\Python313\\python.exe\" -m py_compile \"run_demo.py\"",
"\"C:\\Users\\cgb2\\AppData\\Local\\Programs\\Python\\Python313\\python.exe\" -m compileall \"app\" \"tests\"",
"\"C:\\Users\\cgb2\\AppData\\Local\\Programs\\Python\\Python313\\python.exe\" -m unittest discover -s tests -p test_*.py"
]
},
"references": [
{
"name": "typing.python.org/en/latest/spec",
"url": "https://typing.python.org/en/latest/spec/",
"tags": []
},
{
"name": "packaging.python.org/en/latest",
"url": "https://packaging.python.org/en/latest/",
"tags": [
"packaging",
"python"
]
},
{
"name": "github.com/apple/ml-diffucoder",
"url": "https://github.com/apple/ml-diffucoder",
"tags": [
"github",
"repo"
]
},
{
"name": "github.com/python/cpython/tree/main/Lib",
"url": "https://github.com/python/cpython/tree/main/Lib",
"tags": [
"github",
"repo"
]
},
{
"name": "docs.python.org/3/whatsnew",
"url": "https://docs.python.org/3/whatsnew/",
"tags": [
"docs",
"python",
"stdlib"
]
},
{
"name": "docs.python.org/3/reference",
"url": "https://docs.python.org/3/reference/",
"tags": [
"docs",
"python",
"stdlib"
]
}
]
}