Access to the root url (/) should use http content negotiation to redirect to different urls depending on what the client specifies in the request (Accept header).
For text/html (from browsers), it should redirect to /docs (as is implemented now).
For application/json (from scripts), it should redirect to /openapi.json.
Access to the root url (
/
) should use http content negotiation to redirect to different urls depending on what the client specifies in the request (Accept
header).text/html
(from browsers), it should redirect to/docs
(as is implemented now).application/json
(from scripts), it should redirect to/openapi.json
.