-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
只有get请求才获取params #39
Labels
enhancement
New feature or request
Comments
和 #34 同样的问题。 |
至于为啥 query 字段的类型定义全是 string,因为本质上 query 就是 string: |
如果是自家实现的接口,最好要么全部 get,要么全部 post。这是说,我需要把接口都换成get请求方式嘛? |
就是说你让后端把参数全部放进 query params 或者 form data。 |
好的,谢谢 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我尝试了用idea 导出文档后,有两种格式的请求
1. post请求
他的请求参数如下
2. get请求
他的请求参数如下
但是在生成的types文件中,post请求并未包含参数
而get请求
对dataId,tableType,taskId 进行了限定(其实还有点好奇,这三个熟悉的string类型是如何获取的);
猜测可能是因为Headers不一样,导致post请求无法获取具体参数,但是不知道如何在配置文件中做具体的适配
图片可能要翻墙才能看到?其实就是POST请求参数多了个headers的显示,Content-Type : multipart/form-data, Query部分正常显示参数及说明,而get请求没有headers部分。
The text was updated successfully, but these errors were encountered: