Feat: add login
This commit is contained in:
@@ -30,6 +30,11 @@ definitions:
|
||||
loginUrl:
|
||||
type: string
|
||||
type: object
|
||||
auth.postLoginInput:
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
type: object
|
||||
info:
|
||||
contact: {}
|
||||
license:
|
||||
@@ -176,4 +181,18 @@ paths:
|
||||
$ref: '#/definitions/auth.postGenLoginUrlOutput'
|
||||
"400":
|
||||
description: Bad Request
|
||||
/auth/login:
|
||||
post:
|
||||
parameters:
|
||||
- description: payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/auth.postLoginInput'
|
||||
responses:
|
||||
"302":
|
||||
description: redirect to root page
|
||||
schema:
|
||||
type: string
|
||||
swagger: "2.0"
|
||||
|
||||
Reference in New Issue
Block a user