[QUESTION] Documenting mounted routes?
See original GitHub issueDescription
As FastAPI is a subclass of Starlette, it is possible to mount any ASGI-compliant app using app.mount
; specifically, I have mounted a Starlette endpoint and it works as expected. However, it does not show in the documentation on /docs
– am I missing something, or it is something that needs to be implemented yet? Thank you!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Named routes in mounted rails engine - Stack Overflow
The right way. I believe the best solution is to call new_post_path on the Engine's routes proxy, which is available as a helper...
Read more >Network Documentation Best Practices: What to Create & Why
Network Documentation Best Practices: What to Create & Why ; Useful, Routing protocol, Diagram ; Useful, Security view, Diagram ; Useful, Cloud ...
Read more >How To Navigate Between Views with Vue Router
js is now listening to route changes and leveraging your src/router/index.js file. However, Vue Router has no way to display the mounted Home....
Read more >Handbook M-39 - Management of Delivery Services
211 Selecting Period for Mail Counts and Route Inspections . ... must document the problem and request, through appropriate management.
Read more >Express Tutorial Part 4: Routes and controllers - MDN Web Docs
Overview · "Routes" to forward the supported requests (and any information encoded in request URLs) to the appropriate controller functions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tiangolo stumbled upon same problem recently, my case is slightly different -
starlette.routing.Mount
gets completely ignored by the docs generation routine:Any way to workaround this?
Another issue is that I have to specify
response_class=UJSONResponse
every time, but that’s not a big deal.Yes, I figured it out, which is why I closed the issue. I might be a neat approach to have the documentation functionality implemented as a mixin or something similar, so it could be reused on any ASGI app. 🤔