aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-08-28 22:00:41 +0100
committerGravatar Chris Lovering <[email protected]>2024-08-28 22:00:41 +0100
commit0144c998c8f766225c3e7fc1bb8a1f898a3f6b1e (patch)
tree30eff32b9b05baf164f4e84e760fc83576a97c8e
parentUpdate 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.py5
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."""