1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(swagger): swagger docs for http status code 409 [EE-5767] (#11535)

This commit is contained in:
Prabhat Khera 2024-04-19 15:19:13 +12:00 committed by GitHub
parent 0fb3555a70
commit 7e9dd01265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 18 additions and 9 deletions

View file

@ -89,6 +89,7 @@ func (payload *registryCreatePayload) Validate(_ *http.Request) error {
// @param body body registryCreatePayload true "Registry details"
// @success 200 {object} portainer.Registry "Success"
// @failure 400 "Invalid request"
// @failure 409 "Another registry with the same name or same URL & credentials already exists"
// @failure 500 "Server error"
// @router /registries [post]
func (handler *Handler) registryCreate(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {