summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_networks.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2022-02-10 13:45:46 -0700
committerMatthew Heon <matthew.heon@pm.me>2022-02-16 13:55:56 -0500
commit975d79aedbf9284b77c47ececd544cb9b0f98d71 (patch)
tree54aa101c22b4b00fee18f93f584c8080ac56dfe3 /pkg/api/server/register_networks.go
parenta34f27959a6125dc3e27d962cf0ec8715c30eb3b (diff)
downloadpodman-975d79aedbf9284b77c47ececd544cb9b0f98d71.tar.gz
podman-975d79aedbf9284b77c47ececd544cb9b0f98d71.tar.bz2
podman-975d79aedbf9284b77c47ececd544cb9b0f98d71.zip
Add 409 response to swagger godoc
When attempting to create a network with a name that already exists, a 409 status code will be returned [NO NEW TESTS NEEDED] Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/server/register_networks.go')
-rw-r--r--pkg/api/server/register_networks.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/api/server/register_networks.go b/pkg/api/server/register_networks.go
index baa1fe6fb..4466c938f 100644
--- a/pkg/api/server/register_networks.go
+++ b/pkg/api/server/register_networks.go
@@ -320,6 +320,8 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
// $ref: "#/responses/NetworkCreateReport"
// 400:
// $ref: "#/responses/BadParamError"
+ // 409:
+ // $ref: "#/responses/ConflictError"
// 500:
// $ref: "#/responses/InternalError"
r.HandleFunc(VersionedPath("/libpod/networks/create"), s.APIHandler(libpod.CreateNetwork)).Methods(http.MethodPost)