Skip to content

Commit

Permalink
fix(settings): swagger missing 401 responses (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 authored May 16, 2024
1 parent 4a31c1e commit 178e678
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/admin/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ import (
// type: json
// schema:
// "$ref": "#/definitions/Platform"
// '401':
// description: Unauthorized
// schema:
// "$ref": "#/definitions/Error"
// '404':
// description: Unable to retrieve settings
// schema:
Expand Down Expand Up @@ -88,6 +92,10 @@ func GetSettings(c *gin.Context) {
// description: Unable to update settings — bad request
// schema:
// "$ref": "#/definitions/Error"
// '401':
// description: Unauthorized
// schema:
// "$ref": "#/definitions/Error"
// '404':
// description: Unable to retrieve platform settings to update
// schema:
Expand Down Expand Up @@ -206,6 +214,10 @@ func UpdateSettings(c *gin.Context) {
// type: json
// schema:
// "$ref": "#/definitions/Platform"
// '401':
// description: Unauthorized
// schema:
// "$ref": "#/definitions/Error"
// '404':
// description: Unable to retrieve settings to restore
// schema:
Expand Down

0 comments on commit 178e678

Please sign in to comment.