aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-04-12 09:33:51 -0700
committerJhon Honce <jhonce@redhat.com>2021-04-12 09:33:51 -0700
commit59283322e755b5ab82cb4c6cff2ca60119aea711 (patch)
treebeb2382c810fa2e52099ae6a2b0b85a3c2f79285 /pkg
parent7203e0a76a82e278b6a41e7a5851463a0b2f571e (diff)
downloadpodman-59283322e755b5ab82cb4c6cff2ca60119aea711.tar.gz
podman-59283322e755b5ab82cb4c6cff2ca60119aea711.tar.bz2
podman-59283322e755b5ab82cb4c6cff2ca60119aea711.zip
[CI:DOCS] Correct status code for /pods/create
Swagger documentation reported that the API endpoint /pods/create returned 200 while the as-built code returned 201. 201 is more correct so documentation updated. Tests already checked for 201 so no updated needed. Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/server/register_pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/server/register_pods.go b/pkg/api/server/register_pods.go
index 5944b98fd..3bcc50ba4 100644
--- a/pkg/api/server/register_pods.go
+++ b/pkg/api/server/register_pods.go
@@ -38,7 +38,7 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
// schema:
// $ref: "#/definitions/PodSpecGenerator"
// responses:
- // 200:
+ // 201:
// schema:
// $ref: "#/definitions/IdResponse"
// 400: