见官方文档
上一篇

Cookie Parameterscooke 变量的声明与之前定义 Query 和 Path 变量相同
使用例子from fastapi import Cookie, FastAPI
app = FastAPI()
@app.get(
2020-04-14
下一篇

Schema Extra - Example
Schema Extra - Example可以为 JSON 模式定义额外的信息
一个常见的用法是为 api 文档添加一个例子
有如下的几种方式来定义额外的 JSON 模式信息
P
2020-04-14