|
@@ -932,47 +932,63 @@ paths:
|
|
operationId: login
|
|
operationId: login
|
|
summary: Login with REST API
|
|
summary: Login with REST API
|
|
consumes:
|
|
consumes:
|
|
- - application/x-www-form-urlencoded
|
|
|
|
- application/json
|
|
- application/json
|
|
|
|
+ - application/x-www-form-urlencoded
|
|
tags:
|
|
tags:
|
|
- Login
|
|
- Login
|
|
parameters:
|
|
parameters:
|
|
- - name: username
|
|
|
|
- in: formData
|
|
|
|
|
|
+ - name: loginRequest
|
|
|
|
+ in: body
|
|
required: true
|
|
required: true
|
|
- description: |
|
|
|
|
- Your username
|
|
|
|
- type: string
|
|
|
|
- - name: password
|
|
|
|
- in: formData
|
|
|
|
- required: true
|
|
|
|
- description: |
|
|
|
|
- Your password
|
|
|
|
- type: string
|
|
|
|
- format: password
|
|
|
|
|
|
+ description: Login credentials
|
|
|
|
+ schema:
|
|
|
|
+ type: object
|
|
|
|
+ required:
|
|
|
|
+ - username
|
|
|
|
+ - password
|
|
|
|
+ properties:
|
|
|
|
+ username:
|
|
|
|
+ description: |
|
|
|
|
+ Your username
|
|
|
|
+ type: string
|
|
|
|
+ password:
|
|
|
|
+ description: |
|
|
|
|
+ Your password
|
|
|
|
+ type: string
|
|
|
|
+ format: password
|
|
responses:
|
|
responses:
|
|
200:
|
|
200:
|
|
description: |-
|
|
description: |-
|
|
Successful authentication
|
|
Successful authentication
|
|
schema:
|
|
schema:
|
|
- items:
|
|
|
|
- properties:
|
|
|
|
- id:
|
|
|
|
- type: string
|
|
|
|
- token:
|
|
|
|
- type: string
|
|
|
|
- tokenExpires:
|
|
|
|
- type: string
|
|
|
|
|
|
+ type: object
|
|
|
|
+ required:
|
|
|
|
+ - id
|
|
|
|
+ - token
|
|
|
|
+ - tokenExpires
|
|
|
|
+ properties:
|
|
|
|
+ id:
|
|
|
|
+ type: string
|
|
|
|
+ description: User ID
|
|
|
|
+ token:
|
|
|
|
+ type: string
|
|
|
|
+ description: |
|
|
|
|
+ Authentication token
|
|
|
|
+ tokenExpires:
|
|
|
|
+ type: string
|
|
|
|
+ format: date-time
|
|
|
|
+ description: |
|
|
|
|
+ Token expiration date
|
|
400:
|
|
400:
|
|
description: |
|
|
description: |
|
|
Error in authentication
|
|
Error in authentication
|
|
schema:
|
|
schema:
|
|
- items:
|
|
|
|
- properties:
|
|
|
|
- error:
|
|
|
|
- type: number
|
|
|
|
- reason:
|
|
|
|
- type: string
|
|
|
|
|
|
+ type: object
|
|
|
|
+ properties:
|
|
|
|
+ error:
|
|
|
|
+ type: string
|
|
|
|
+ reason:
|
|
|
|
+ type: string
|
|
default:
|
|
default:
|
|
description: |
|
|
description: |
|
|
Error in authentication
|
|
Error in authentication
|