From 9024ce321f77705778589c73fa43247092626bdc Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Wed, 23 Dec 2020 10:34:47 +0100 Subject: [PATCH 1/2] fix api doc response code fixes #14120 --- routers/api/v1/user/app.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index d02b8cea21e2e..547730ea57e3a 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -85,7 +85,7 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption // name: // type: string // responses: - // "200": + // "201": // "$ref": "#/responses/AccessToken" t := &models.AccessToken{ diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index d0303040c56fb..72665e2b6d2d5 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -11128,7 +11128,7 @@ } ], "responses": { - "200": { + "201": { "$ref": "#/responses/AccessToken" } } From 6514a32aea937feb0b94cbeaab354085e1d6c21a Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 24 Dec 2020 17:05:07 +0000 Subject: [PATCH 2/2] empty