Update swagger

This commit is contained in:
Jannis Mattheis 2020-05-04 13:22:01 +02:00
parent 7b90b8a8f5
commit 415dd862f8
2 changed files with 13 additions and 14 deletions

View File

@ -49,8 +49,7 @@ embed-static:
go run hack/packr/packr.go go run hack/packr/packr.go
update-swagger: update-swagger:
go mod vendor swagger generate spec --scan-models -o docs/spec.json
GO111MODULE=off swagger generate spec --scan-models -o docs/spec.json
check-swagger: update-swagger check-swagger: update-swagger
## add the docs to git, this changes line endings in git, otherwise this does not work on windows ## add the docs to git, this changes line endings in git, otherwise this does not work on windows

View File

@ -1927,7 +1927,7 @@
"example": "AWH0wZ5r0Mbac.r" "example": "AWH0wZ5r0Mbac.r"
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"Client": { "Client": {
"description": "The Client holds information about a device which can receive notifications (and other stuff).", "description": "The Client holds information about a device which can receive notifications (and other stuff).",
@ -1961,7 +1961,7 @@
"example": "CWH0wZ5r0Mbac.r" "example": "CWH0wZ5r0Mbac.r"
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"Error": { "Error": {
"description": "The Error contains error relevant information.", "description": "The Error contains error relevant information.",
@ -1993,7 +1993,7 @@
"example": "you need to provide a valid access token or user credentials to access this api" "example": "you need to provide a valid access token or user credentials to access this api"
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"Health": { "Health": {
"description": "Health represents how healthy the application is.", "description": "Health represents how healthy the application is.",
@ -2017,7 +2017,7 @@
"example": "green" "example": "green"
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"Message": { "Message": {
"description": "The MessageExternal holds information about a message which was sent by an Application.", "description": "The MessageExternal holds information about a message which was sent by an Application.",
@ -2091,7 +2091,7 @@
} }
}, },
"x-go-name": "MessageExternal", "x-go-name": "MessageExternal",
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"PagedMessages": { "PagedMessages": {
"description": "Wrapper for the paging and the messages", "description": "Wrapper for the paging and the messages",
@ -2115,7 +2115,7 @@
"$ref": "#/definitions/Paging" "$ref": "#/definitions/Paging"
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"Paging": { "Paging": {
"description": "The Paging holds information about the limit and making requests to the next page.", "description": "The Paging holds information about the limit and making requests to the next page.",
@ -2162,7 +2162,7 @@
"example": 5 "example": 5
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"PluginConf": { "PluginConf": {
"description": "Holds information about a plugin instance for one user.", "description": "Holds information about a plugin instance for one user.",
@ -2246,7 +2246,7 @@
} }
}, },
"x-go-name": "PluginConfExternal", "x-go-name": "PluginConfExternal",
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"User": { "User": {
"description": "The User holds information about permission and other stuff.", "description": "The User holds information about permission and other stuff.",
@ -2279,7 +2279,7 @@
} }
}, },
"x-go-name": "UserExternal", "x-go-name": "UserExternal",
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"UserPass": { "UserPass": {
"description": "The Password for updating the user.", "description": "The Password for updating the user.",
@ -2297,7 +2297,7 @@
} }
}, },
"x-go-name": "UserExternalPass", "x-go-name": "UserExternalPass",
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"UserWithPass": { "UserWithPass": {
"description": "The UserWithPass holds information about the credentials and other stuff.", "description": "The UserWithPass holds information about the credentials and other stuff.",
@ -2337,7 +2337,7 @@
} }
}, },
"x-go-name": "UserExternalWithPass", "x-go-name": "UserExternalWithPass",
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
}, },
"VersionInfo": { "VersionInfo": {
"description": "VersionInfo Model", "description": "VersionInfo Model",
@ -2367,7 +2367,7 @@
"example": "5.2.6" "example": "5.2.6"
} }
}, },
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/v2/model"
} }
}, },
"securityDefinitions": { "securityDefinitions": {