feat: add sample endpoint to test JWT
This commit is contained in:
@@ -80,3 +80,33 @@ export type UserInfoDTO = {
|
||||
ttl: number | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* components:
|
||||
* schemas:
|
||||
* ShortUserInfoDTO:
|
||||
* type: object
|
||||
* required:
|
||||
* - status
|
||||
* - id
|
||||
* - name
|
||||
* - role
|
||||
* properties:
|
||||
* status:
|
||||
* type: string
|
||||
* default: ok on success, otherwise ErrorDTO with error
|
||||
* id:
|
||||
* type: number
|
||||
* name:
|
||||
* type: string
|
||||
* default: username
|
||||
* role:
|
||||
* type: number
|
||||
* default: 0 # 0 - standard user, 1 - administrator
|
||||
*/
|
||||
export type ShortUserInfoDTO = {
|
||||
status: 'ok';
|
||||
id: number;
|
||||
name: string;
|
||||
role: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user