Skip to content

Commit bdeccc3

Browse files
authored
Fix api doc response code (#14123)
Fixes #14120
1 parent fa2e349 commit bdeccc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/api/v1/user/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption
8585
// name:
8686
// type: string
8787
// responses:
88-
// "200":
88+
// "201":
8989
// "$ref": "#/responses/AccessToken"
9090

9191
t := &models.AccessToken{

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11128,7 +11128,7 @@
1112811128
}
1112911129
],
1113011130
"responses": {
11131-
"200": {
11131+
"201": {
1113211132
"$ref": "#/responses/AccessToken"
1113311133
}
1113411134
}

0 commit comments

Comments
 (0)