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