onasty/api/paths/auth/signin.yml (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com api: add openapi docs (#181)..., 9 months ago
olexsmir@gmail.com api: add openapi docs (#181)..., 9 months ago
| 1 | post: |
| 2 | tags: [Auth] |
| 3 | summary: Sign in |
| 4 | security: |
| 5 | - {} |
| 6 | |
| 7 | requestBody: |
| 8 | required: true |
| 9 | content: |
| 10 | application/json: |
| 11 | schema: |
| 12 | $ref: '../../components/requests/Signin.yml' |
| 13 | responses: |
| 14 | '200': |
| 15 | description: Successfully signed in |
| 16 | content: |
| 17 | application/json: |
| 18 | schema: |
| 19 | $ref: '../../components/schemas/JwtTokens.yml' |
| 20 | |
| 21 | '400': |
| 22 | $ref: '../../components/responses/ErrorResponse.yml' |
| 23 | |
| 24 | '500': |
| 25 | $ref: '../../components/responses/ErrorResponse.yml' |