about summary refs log tree commit diff
path: root/test/python/test_openapi.py
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-10-03 13:14:47 +0000
committerPjotr <wrk@bosa.lan>2026-10-03 13:14:47 +0000
commit1f56f7fcbb0934ac8e2208401dc62102e9caa630 (patch)
treebf51f2180a15cb0f9917f3bb4502a6db5f6ce760 /test/python/test_openapi.py
parent0a21f4876c61894c788143db8c65c3d00525243b (diff)
downloadgenenetwork4-1f56f7fcbb0934ac8e2208401dc62102e9caa630.tar.gz
Document ApiError 500 on / and /version, add README example.
* src/lib.rs (hello_world)[utoipa::path]<responses>: Add 500, body
ApiError.
(version)[utoipa::path]<responses>: Likewise.  Neither handler has a
failure path today (no database access, no I/O); this documents the
same error contract as /species and /species/{species} in
/openapi.json for consistency.
* README.md: Add a second ApiError example with next omitted (null),
for an endpoint with no related endpoint to suggest.  Note that
spec_url is always /openapi.json on every error from every endpoint,
and that / and /version document the 500 response without currently
having a way to produce one.
Diffstat (limited to 'test/python/test_openapi.py')
0 files changed, 0 insertions, 0 deletions