路徑的例子

1
Path(title="The ID of the item to get")

查詢參數

1
2
3
4
5
Query(
title="Query string",
description="Query string for the items to search in the database that have a good match",
min_length=3,
)

body的字段

1
2
3
Field(
default=None, title="The description of the item", max_length=300
)