Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
Comments
Add Open API prefix route - correct docs behind reverse proxy#26
Add Open API prefix route - correct docs behind reverse proxy#26tiangolo merged 11 commits intofastapi:masterfrom
Conversation
codecovbot commentedFeb 10, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #26 +/- ##===================================== Coverage 100% 100% ===================================== Files 95 99 +4 Lines 2484 2582 +98 =====================================+ Hits 2484 2582 +98
Continue to review full report at Codecov.
|
kabirkhan commentedFeb 10, 2019
Fix for#15 |
kabirkhan commentedFeb 13, 2019
@tiangolo would you mind taking a look at this? |
tiangolo commentedFeb 14, 2019
Great job@kabirkhan ! Thanks a lot. 🎉 🌮 I added tests and docs on top of your work.
Are you using it at MS? That's very cool! |
tiangolo commentedFeb 14, 2019
I just released Also, the relevant docs are here:https://fastapi.tiangolo.com/tutorial/sub-applications-proxy/ |
kabirkhan commentedFeb 14, 2019
@tiangolo yep I'm actually planning to use it for all of my team's ML services at Microsoft. Some of them are getting integrated into the core Windows product and some Office products. Great job with the documentation too! |
tiangolo commentedFeb 17, 2019
That's awesome! 🌮 🍰 🚀 May I quote it (that you at MS are using FastAPI)? |
kabirkhan commentedFeb 17, 2019
Yeah, go for it! |
sm-Fifteen commentedDec 6, 2019
I know this is an old issue/PR, but shouldn't |
luckydonald commentedJan 6, 2020
Huh, sounds about right.@sm-Fifteen you may open a new issue for that. |
tiangolo commentedJun 11, 2020
Yeap@sm-Fifteen, I just merged#1199 addressing |
jkoech commentedJul 11, 2022
@tiangolo seems the link to theprefix route docs is broken. Perhaps did the docs move?
|
I run a lot of services in Kubernetes usingAmbassador as my API Gateway. Ambassador allows you to configure a route prefix for each one of your services and then it handles ingress and routing to the initial service. This PR enables me to configure the same prefix I use with Ambassador in the Swagger UI API docs.
Example:
NOTE: This is not the same as using the include_router method and adding a prefix.
This is meant only to rewrite the route paths in the Swagger UI.
BTW: Awesome Project! Thanks so much for your work on this, I'm using fastapi a ton these days.