feat: use postgres to fetch and store user info
This commit is contained in:
parent
79e8ece948
commit
6cbf0afb33
9 changed files with 175 additions and 42 deletions
|
|
@ -30,16 +30,13 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
required:
|
||||
- user_id
|
||||
type: object
|
||||
properties:
|
||||
success:
|
||||
type: boolean
|
||||
error:
|
||||
type: string
|
||||
nullable: true
|
||||
user_id:
|
||||
type: string
|
||||
nullable: true
|
||||
type: integer
|
||||
format: int64
|
||||
|
||||
/auth/sign-in:
|
||||
post:
|
||||
|
|
@ -65,17 +62,16 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
required:
|
||||
- user_id
|
||||
- user_name
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
nullable: true
|
||||
user_id:
|
||||
type: string
|
||||
nullable: true
|
||||
type: integer
|
||||
format: int64
|
||||
user_name:
|
||||
type: string
|
||||
nullable: true
|
||||
"401":
|
||||
description: Access denied due to invalid credentials
|
||||
content:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue