api_route

FastAPI学习-27 使用@app.api_route() 设置多种请求方式

对同一个访问函数设置多个http 请求方式 api_route 使用 使用methods 参数设置请求方式 from fastapi import FastAPI app = FastAPI() @app.api_route('/demo/b', methods=['get', 'post']) a ......
api_route 多种 FastAPI 方式 route
共1篇  :1/1页 首页上一页1下一页尾页