diff options
author | 2024-08-28 22:00:41 +0100 | |
---|---|---|
committer | 2024-08-28 22:00:41 +0100 | |
commit | 0144c998c8f766225c3e7fc1bb8a1f898a3f6b1e (patch) | |
tree | 30eff32b9b05baf164f4e84e760fc83576a97c8e | |
parent | Update public-relations.md (diff) |
Add a test endpoint to show off the API docs problem with returning 204s
-rw-r--r-- | thallium-backend/src/app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/thallium-backend/src/app.py b/thallium-backend/src/app.py index 69310a7..130a489 100644 --- a/thallium-backend/src/app.py +++ b/thallium-backend/src/app.py @@ -33,6 +33,11 @@ fastapi_app.add_middleware( ) +@fastapi_app.post("/test-204", status_code=204, tags=["AA-Test"]) +def test() -> None: + """Show off the issue with 204s in the API docs.""" + + @fastapi_app.get("/heartbeat", include_in_schema=False) def health_check() -> JSONResponse: """Return basic response, for use as a health check.""" |