更新API请求体,移除不必要的请求参数
This commit is contained in:
@@ -26,7 +26,7 @@ async def fastapi_get_pattern_schema(network: str = Query(..., description="管
|
||||
async def fastapi_add_pattern(
|
||||
network: str = Query(..., description="管网名称(或数据库名称)"),
|
||||
pattern: str = Query(..., description="模式ID"),
|
||||
req: Request = Body(...)
|
||||
req: Request = None
|
||||
) -> ChangeSet:
|
||||
"""添加模式。
|
||||
|
||||
@@ -65,7 +65,7 @@ async def fastapi_get_pattern_properties(
|
||||
async def fastapi_set_pattern_properties(
|
||||
network: str = Query(..., description="管网名称(或数据库名称)"),
|
||||
pattern: str = Query(..., description="模式ID"),
|
||||
req: Request = Body(...)
|
||||
req: Request = None
|
||||
) -> ChangeSet:
|
||||
"""设置模式属性。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user