13.路径操作配置
-
直接上代码
"""Path Operation Configuration 路径操作配置""" @app04.post( "/path_operation_configuration", response_model=UserOut, # tags=["Path", "Operation", "Configuration"], # 标签 tags=['路径操作标签'], # 标签 summary="This is summary", # 接口简单描述 description="This is description", # 描述 response_description="This is response description", # 响应结果添加描述 deprecated=True, # 如果为true 则表示接口已经废弃(中间用横线),但还能用 status_code=status.HTTP_200_OK ) async def path_operation_configuration(user: UserIn): """ Path Operation Configuration 路径操作配置 :param user: 用户信息 :return: 返回结果 """ return user.dict()
-
效果