mirror of
https://git.dirksys.ovh/dirk/bankserver.git
synced 2025-12-20 02:59:20 +01:00
document key based user data
This commit is contained in:
parent
e8eef372aa
commit
791ff84515
@ -126,6 +126,29 @@ paths:
|
||||
default:
|
||||
$ref: '#/components/responses/Default'
|
||||
/api/users/@me/data:
|
||||
get:
|
||||
operationId: self-list-data
|
||||
summary: List user data keys
|
||||
tags:
|
||||
- Users
|
||||
security:
|
||||
- bearer: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/UserDataKey'
|
||||
responses:
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
401:
|
||||
$ref: '#/components/responses/Unauthorized'
|
||||
default:
|
||||
$ref: '#/components/responses/Default'
|
||||
/api/users/@me/data/{key}:
|
||||
get:
|
||||
operationId: self-get-data
|
||||
summary: User data
|
||||
@ -133,6 +156,8 @@ paths:
|
||||
- Users
|
||||
security:
|
||||
- bearer: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/UserDataKey'
|
||||
responses:
|
||||
200:
|
||||
description: Ok
|
||||
@ -150,6 +175,8 @@ paths:
|
||||
- Users
|
||||
security:
|
||||
- bearer: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/UserDataKey'
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
@ -545,6 +572,13 @@ components:
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
UserDataKey:
|
||||
name: key
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
maxLength: 64
|
||||
ChatId:
|
||||
name: chatId
|
||||
in: path
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user