当前位置:网站首页>flask-restplus接口地址404问题
flask-restplus接口地址404问题
2022-08-10 10:48:00 【华为云】
问题:
书写 仪表盘的图表配置信息保存 操作的接口时,想通过querystring 的方式来获取id值,因此定义 的接口 路由是
/api/dashboard/chart/handle/?id=int:id
这样的 路由地址,其中 int:id 这里是必需要传递的一个value 值,通过这样的方式来获取到id值,但在使用过程中,请求该接口,一直返回404.
解决:
使用flask-restplus 书写接口,querystring 并不需要在路由中定义,只需要标识querystring 是必填的即可,同时需要注意 路由需要以 / 结尾 即修改成
/api/dashboard/chart/handle/
在请求接口时在后面添加上querystring key value 值即可。
边栏推荐
- 越折腾越好用的 3 款开源 APP
- AUTOCAD - reducing spline curve control points, the advanced CAD practice (3)
- 杭电多校-Loop-(不确定性贪心+线段树)
- Emulate stm32 directly with proteus - the programmer can be completely discarded
- 网络安全笔记6——数字证书与公钥基础设施
- Weilai-software development engineer side record
- MongoDB database notes
- 程序员追求技术夯实基础学习路线建议
- FastReport.Net 2022.2.17 Crack
- 自动化测试及Selenium
猜你喜欢

快速上手,征服三种不同分布式架构调用方案

mysql5.7 installation and deployment - yum installation

Store limited time seckill function system

Redis (three) - detailed configuration file, publish and subscribe, new data types

《MySQL高级篇》六、索引的创建与设计原则

In August the DB list latest scores - database Engines

MongoDB数据库笔记

leetcode:334. 递增的三元子序列

使用cpolar远程连接群晖NAS(升级固定链接2)

Network Security Note 6 - Digital Certificates and Public Key Infrastructure
随机推荐
LeetCode_152_乘积最大子数组
Network Security Note 6 - Digital Certificates and Public Key Infrastructure
mysql appears: ERROR 1524 (HY000): Plugin '123' is not loaded
Dry goods!ASSANet: Making PointNet++ faster and stronger
谷歌数据中心发生“电力事故”造成 3 人受伤
JWT 实现登录认证 + Token 自动续期方案
今天面了个腾讯拿38K出来的大佬,让我见识到了基础的天花板
LeetCode_628_三个数的最大乘积
4 面拿华为 offer 的水平,面试阿里居然一面就被吊打?
Research on motion capture system for indoor combined positioning technology
「业务架构」介绍BPMN第二部分-泳道
js guessing game source code
金九银十跳槽旺季:阿里、百度、京东、美团等技术面试题及答案
owl.carousel poster card Slider carousel switch
Weilai-software development engineer side record
Chapter 22 Source Code File REST API Reference (4)
MLX90640 红外热成像仪测温传感器 手机 APP 软件 RedEye 连接详细
js猜拳小游戏源码
FastReport.Net 2022.2.17 Crack
Memory problems difficult to locate, it is because you do not use ASAN