document key based user data

This commit is contained in:
DSeeLP 2025-03-24 19:09:10 +01:00
parent e8eef372aa
commit 791ff84515

View File

@ -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