Fix api doc response code (#14123)

Fixes #14120
This commit is contained in:
Norwin 2020-12-24 18:14:01 +00:00 committed by GitHub
parent fa2e34928d
commit bdeccc3688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption
// name: // name:
// type: string // type: string
// responses: // responses:
// "200": // "201":
// "$ref": "#/responses/AccessToken" // "$ref": "#/responses/AccessToken"
t := &models.AccessToken{ t := &models.AccessToken{

View File

@ -11128,7 +11128,7 @@
} }
], ],
"responses": { "responses": {
"200": { "201": {
"$ref": "#/responses/AccessToken" "$ref": "#/responses/AccessToken"
} }
} }