all repos

onasty @ 004414e48e0ae8a055190610f27d5a19108dfc13

a one-time notes service

onasty/api/paths/auth/oauth-provider.yml(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
get:
  tags: [OAuth]
  summary: Initiate OAuth login
  security:
    - {}

  parameters:
    - name: provider
      in: path
      required: true
      schema:
        type: string
        enum: [google, github]

  responses:
    '302':
      description: Redirect to OAuth provider
    '400':
      $ref: '../../components/responses/ErrorResponse.yml'
    '500':
      $ref: '../../components/responses/ErrorResponse.yml'