コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 1 of about 1 for subapi (0.000 sec.)
Sub Applications - Mounts 9414
Sub Applications - Mounts Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you need to have two independent FastAPI applications, with their own independent Open ... import FastAPI app = FastAPI () @app . get ( "/app" ) def read_main (): return { "message" : "Hello World from main app" } subapi = FastAPI () @subapi . get ( "/sub" ) def read_sub (): return { "message" : "Hello World from sub API" } app . mount ( "/s ... ubapi" , subapi ) Sub-application Then, create your sub-application, and its path operations . This sub-application is just another standa ... import FastAPI app = FastAPI () @app . get ( "/app" ) def read_main (): return { "message" : "Hello World from main app" } subapi = FastAPI () @subapi . get ( "/sub" ) def read_sub (): return { "message" : "Hello World from sub API" } app . mount ( "/s ...
https://man.mtool.work/fastapi/0.115/advanced/sub-applications/
PREV 1 NEXT