Skip to content
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

当一个方法支持多种method时会产生同样的operation id #833

Open
wangshxin opened this issue Jul 11, 2022 · 2 comments
Open

Comments

@wangshxin
Copy link

// @router [Get,Post]
swagger文件的同一个path下,不同的method下会产生相同的operationID
https://github.com/beego/bee/blob/develop/generate/swaggergen/g_docs.go#L571

@flycash
Copy link
Collaborator

flycash commented Jul 18, 2022

I can not get your point, can you give more details or give a demo?

@wangshxin
Copy link
Author

// @router / [Get,Post] func (c *DfsFileController) ListDfsFiles() {}

"/dfs-files/": {
"get": {
"tags": [
"dfs-files"
],
"description": "List dfs files in a directory",
"operationId": "ListDfsFiles",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
...
],
"responses": {
"200": {
...
},
"500": {
...
}
}
},
"post": {
"tags": [
"dfs-files"
],
"description": "List dfs files in a directory",
"operationId": "ListDfsFiles",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
...
],
"responses": {
"200": {
...
},
"500": {
...
}
}
}
},

Baihhh pushed a commit to Baihhh/bee that referenced this issue Jul 5, 2023
* feat: add aliyun captcha provider

* Rename App key

* fix typo

* Rename HMACSHA1 & Reused clientId2 and clientSecret2

* Update ProviderEditPage.js

* Delete unused import

Co-authored-by: Gucheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants