1
2
3
4
5
6
7
8
9
10
11
12
13
from fastapi import FastAPI


app = FastAPI(
title="my project",
description="This is a very project",
version="1.2.3"
)

# redoc设置
# app = FastAPI(openapi_url="/api/v1/openapi.json", version="1.2.1")
# docs设置
# app = FastAPI(docs_url="/docsapi", redoc_url=None)