FastAPI中请求体传参

请求体传参 当你需要将数据从客户端(例如浏览器)发送给API时,你将其作为[请求体] (request body)发送,请求体是客户端发送给API的数据.响应体是API发送给客户端的数据。 class Addr(BaseModel): province: str city: str class Us
posted @ 2024-06-26 13:17  yongheng999  阅读(3)  评论(0编辑  收藏  举报