bee icon indicating copy to clipboard operation
bee copied to clipboard

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

Open wangshxin opened this issue 1 year ago • 2 comments

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

wangshxin avatar Jul 11 '22 03:07 wangshxin

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

flycash avatar Jul 18 '22 10:07 flycash

// @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": { ... } } } },

wangshxin avatar Jul 25 '22 06:07 wangshxin