路徑的例子
Path(title="The ID of the item to get")
查詢參數
Query(
title="Query string",
description="Query string for the items to search in the database that have a good match",
min_length=3,
)
body的字段
Field(
default=None, title="The description of the item", max_length=300
)
标签:description,title,fastapi,接口,item,参数,Query,string
From: https://www.cnblogs.com/bitterteaer/p/17778717.html