onasty/api/paths/auth/oauth-provider.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 | get: |
| 2 | tags: [OAuth] |
| 3 | summary: Initiate OAuth login |
| 4 | security: |
| 5 | - {} |
| 6 | |
| 7 | parameters: |
| 8 | - name: provider |
| 9 | in: path |
| 10 | required: true |
| 11 | schema: |
| 12 | type: string |
| 13 | enum: [google, github] |
| 14 | |
| 15 | responses: |
| 16 | '200': |
| 17 | description: CANNOT BE RETURNED it's here just to make redocly linter not angry at this code |
| 18 | '302': |
| 19 | description: Redirect to OAuth provider |
| 20 | '400': |
| 21 | $ref: '../../components/responses/ErrorResponse.yml' |
| 22 | '500': |
| 23 | $ref: '../../components/responses/ErrorResponse.yml' |