From f218d8849dd27d13a990bf998e64a40169e8674c Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 12 Apr 2021 09:33:51 -0700 Subject: [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 --- pkg/api/server/register_pods.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/api/server/register_pods.go b/pkg/api/server/register_pods.go index c66cc48ff..d0887aada 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: -- cgit v1.2.3-54-g00ecf