摘要: 前言 请求体是客户端发送给 API 的数据,GET 请求不能发送请求体, 常见的发送请求体的请求方法: POST PUT DELETE PATCH 下面使用 POST 请求发送请求体, 定义请求体,需要使用 Pydantic 模型。 从 pydantic 中导入 BaseModel 模型 impor 阅读全文
posted @ 2022-03-10 00:01 西瓜_皮 阅读(702) 评论(0) 推荐(0) 编辑