mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-17 14:09:44 +02:00
fix(api): renew endpoint uses get instead of post, correct @Accept docs
This commit is contained in:
@@ -24,7 +24,6 @@ type Container struct {
|
||||
// @Summary Get containers
|
||||
// @Description Get containers
|
||||
// @Tags docker
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {array} Container
|
||||
// @Failure 403 {object} apitypes.ErrorResponse
|
||||
|
||||
@@ -47,9 +47,8 @@ func toDockerInfo(info dockerSystem.Info) dockerInfo {
|
||||
// @Summary Get docker info
|
||||
// @Description Get docker info
|
||||
// @Tags docker
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {array} dockerInfo
|
||||
// @Success 200 {object} dockerInfo
|
||||
// @Failure 403 {object} apitypes.ErrorResponse
|
||||
// @Failure 500 {object} apitypes.ErrorResponse
|
||||
// @Router /docker/info [get]
|
||||
|
||||
Reference in New Issue
Block a user