[skip ci] Updated swagger docs
(cherry picked from commit 2539f15dfb62689137e1a68a3ca7cbb8e13ac222)
This commit is contained in:
parent
a5a54a40f6
commit
be5822712e
@ -6202,7 +6202,7 @@ const docTemplate = `{
|
|||||||
"JWTKeyAuth": []
|
"JWTKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns the current user object.",
|
"description": "Returns the current user object with their settings.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@ -6217,7 +6217,7 @@ const docTemplate = `{
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/user.User"
|
"$ref": "#/definitions/v1.UserWithSettings"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"404": {
|
"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": {
|
"v1.authInfo": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -6194,7 +6194,7 @@
|
|||||||
"JWTKeyAuth": []
|
"JWTKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns the current user object.",
|
"description": "Returns the current user object with their settings.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
@ -6209,7 +6209,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/user.User"
|
"$ref": "#/definitions/v1.UserWithSettings"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"404": {
|
"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": {
|
"v1.authInfo": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -1455,6 +1455,38 @@ definitions:
|
|||||||
etc.
|
etc.
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
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:
|
v1.authInfo:
|
||||||
properties:
|
properties:
|
||||||
local:
|
local:
|
||||||
@ -5819,14 +5851,14 @@ paths:
|
|||||||
get:
|
get:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
description: Returns the current user object.
|
description: Returns the current user object with their settings.
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: OK
|
description: OK
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/user.User'
|
$ref: '#/definitions/v1.UserWithSettings'
|
||||||
"404":
|
"404":
|
||||||
description: User does not exist.
|
description: User does not exist.
|
||||||
schema:
|
schema:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user