summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_networks.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2022-03-22 15:20:30 -0700
committerJhon Honce <jhonce@redhat.com>2022-03-22 15:20:30 -0700
commit41a6dd36f66564315bc200a790b91de994f6f9e4 (patch)
tree398076d09bdffb4788fd9fb3575d0e9364ef56c3 /pkg/api/server/register_networks.go
parentc840f64e419813f389d88e16294ce916aaf31957 (diff)
downloadpodman-41a6dd36f66564315bc200a790b91de994f6f9e4.tar.gz
podman-41a6dd36f66564315bc200a790b91de994f6f9e4.tar.bz2
podman-41a6dd36f66564315bc200a790b91de994f6f9e4.zip
Update swagger to improve compatibility
[NO NEW TESTS NEEDED] Improve swagger and handler code compatibility. Fixes #12804 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.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkg/api/server/register_networks.go b/pkg/api/server/register_networks.go
index 4466c938f..b900aa953 100644
--- a/pkg/api/server/register_networks.go
+++ b/pkg/api/server/register_networks.go
@@ -105,8 +105,15 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
// schema:
// $ref: "#/definitions/NetworkCreateRequest"
// responses:
- // 200:
- // $ref: "#/responses/CompatNetworkCreate"
+ // 201:
+ // description: network created
+ // schema:
+ // type: object
+ // properties:
+ // Id:
+ // type: string
+ // Warning:
+ // type: string
// 400:
// $ref: "#/responses/BadParamError"
// 500: