mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
c43827d6bd
commit
bbffb0e402
|
|
@ -354,4 +354,4 @@ To configure them, use the `get_stoplight_elements_html` built in function param
|
||||||
- `LayoutOptions.STACKED` Everything in a single column, making integrations with existing websites that have their own sidebar or other columns already.
|
- `LayoutOptions.STACKED` Everything in a single column, making integrations with existing websites that have their own sidebar or other columns already.
|
||||||
- `logo` URL to an image that will show as a small square logo next to the title, above the table of contents.
|
- `logo` URL to an image that will show as a small square logo next to the title, above the table of contents.
|
||||||
- `router`
|
- `router`
|
||||||
- Default: `RouterOptions.HISTORY`
|
- Default: `RouterOptions.HISTORY`
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.openapi.docs import (
|
from fastapi.openapi.docs import (
|
||||||
get_stoplight_elements_html,
|
|
||||||
get_swagger_ui_oauth2_redirect_html,
|
|
||||||
TryItCredentialPolicyOptions,
|
|
||||||
LayoutOptions,
|
LayoutOptions,
|
||||||
RouterOptions,
|
RouterOptions,
|
||||||
|
TryItCredentialPolicyOptions,
|
||||||
|
get_stoplight_elements_html,
|
||||||
|
get_swagger_ui_oauth2_redirect_html,
|
||||||
)
|
)
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
|
|
||||||
|
|
@ -40,4 +40,4 @@ async def elements_html():
|
||||||
|
|
||||||
@app.get("/users/{username}")
|
@app.get("/users/{username}")
|
||||||
async def read_user(username: str):
|
async def read_user(username: str):
|
||||||
return {"message": f"Hello {username}"}
|
return {"message": f"Hello {username}"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue