feat(api): add user info GET endpoint and blocklist usernames
This commit is contained in:
parent
c5ca2d56ac
commit
6c9569ae40
5 changed files with 110 additions and 4 deletions
|
@ -32,7 +32,7 @@ export const getApiDocs = async () => {
|
|||
User: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { type: 'string', format: 'uuid' },
|
||||
id: { type: 'string' },
|
||||
name: { type: 'string' },
|
||||
first_name: { type: 'string' },
|
||||
last_name: { type: 'string' },
|
||||
|
@ -41,6 +41,17 @@ export const getApiDocs = async () => {
|
|||
timezone: { type: 'string', description: 'User timezone' },
|
||||
},
|
||||
},
|
||||
PublicUser: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { type: 'string' },
|
||||
name: { type: 'string' },
|
||||
first_name: { type: 'string' },
|
||||
last_name: { type: 'string' },
|
||||
image: { type: 'string', format: 'uri' },
|
||||
timezone: { type: 'string', description: 'User timezone' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
security: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue