-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
/auth 在路由中已经写成了 POST 方法,但是 swagger 中显示的是 GET #118
Comments
swagger的页面能打开,但是没有一个接口能用的,不知道是不是我操作的问题 |
同樣的問題,謝謝 |
这个项目标注的swag有点问题 |
改下注释,执行swag init
|
修改 swag请求方式 并且如果请求为application/json方式 要修改GetAuth api中参数获取方法c.PostForm改为c.Query |
request url: http://127.0.0.1:8000/auth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
刚下载了代码,发现在swagger页面中调用/auth一直显示
404 page not found
。查看代码发现,在routers/router.go中,/auth路由定义的是POST方法,而swagger页面中显示的是GET方法。
之后,我在postman中使用post方法,带参数请求/auth,还是显示
404 page not found
。请问一下,是我使用的姿势不对吗?感谢。
The text was updated successfully, but these errors were encountered: