1
0

[skip ci] Updated swagger docs

(cherry picked from commit 2539f15dfb62689137e1a68a3ca7cbb8e13ac222)
This commit is contained in:
Frederick [Bot] 2024-09-07 11:48:49 +00:00 committed by kolaente
parent a5a54a40f6
commit be5822712e
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
3 changed files with 120 additions and 6 deletions

View File

@ -6202,7 +6202,7 @@ const docTemplate = `{
"JWTKeyAuth": []
}
],
"description": "Returns the current user object.",
"description": "Returns the current user object with their settings.",
"consumes": [
"application/json"
],
@ -6217,7 +6217,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/user.User"
"$ref": "#/definitions/v1.UserWithSettings"
}
},
"404": {
@ -9582,6 +9582,47 @@ const docTemplate = `{
}
}
},
"v1.UserWithSettings": {
"type": "object",
"properties": {
"created": {
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
},
"deletion_scheduled_at": {
"type": "string"
},
"email": {
"description": "The user's email address.",
"type": "string",
"maxLength": 250
},
"id": {
"description": "The unique, numeric id of this user.",
"type": "integer"
},
"is_local_user": {
"type": "boolean"
},
"name": {
"description": "The full name of the user.",
"type": "string"
},
"settings": {
"$ref": "#/definitions/v1.UserSettings"
},
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"username": {
"description": "The username of the user. Is always unique.",
"type": "string",
"maxLength": 250,
"minLength": 1
}
}
},
"v1.authInfo": {
"type": "object",
"properties": {

View File

@ -6194,7 +6194,7 @@
"JWTKeyAuth": []
}
],
"description": "Returns the current user object.",
"description": "Returns the current user object with their settings.",
"consumes": [
"application/json"
],
@ -6209,7 +6209,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/user.User"
"$ref": "#/definitions/v1.UserWithSettings"
}
},
"404": {
@ -9574,6 +9574,47 @@
}
}
},
"v1.UserWithSettings": {
"type": "object",
"properties": {
"created": {
"description": "A timestamp when this task was created. You cannot change this value.",
"type": "string"
},
"deletion_scheduled_at": {
"type": "string"
},
"email": {
"description": "The user's email address.",
"type": "string",
"maxLength": 250
},
"id": {
"description": "The unique, numeric id of this user.",
"type": "integer"
},
"is_local_user": {
"type": "boolean"
},
"name": {
"description": "The full name of the user.",
"type": "string"
},
"settings": {
"$ref": "#/definitions/v1.UserSettings"
},
"updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string"
},
"username": {
"description": "The username of the user. Is always unique.",
"type": "string",
"maxLength": 250,
"minLength": 1
}
}
},
"v1.authInfo": {
"type": "object",
"properties": {

View File

@ -1455,6 +1455,38 @@ definitions:
etc.
type: integer
type: object
v1.UserWithSettings:
properties:
created:
description: A timestamp when this task was created. You cannot change this
value.
type: string
deletion_scheduled_at:
type: string
email:
description: The user's email address.
maxLength: 250
type: string
id:
description: The unique, numeric id of this user.
type: integer
is_local_user:
type: boolean
name:
description: The full name of the user.
type: string
settings:
$ref: '#/definitions/v1.UserSettings'
updated:
description: A timestamp when this task was last updated. You cannot change
this value.
type: string
username:
description: The username of the user. Is always unique.
maxLength: 250
minLength: 1
type: string
type: object
v1.authInfo:
properties:
local:
@ -5819,14 +5851,14 @@ paths:
get:
consumes:
- application/json
description: Returns the current user object.
description: Returns the current user object with their settings.
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/user.User'
$ref: '#/definitions/v1.UserWithSettings'
"404":
description: User does not exist.
schema: