diff --git a/openapi/index.yaml b/openapi/index.yaml index 50d1b15..183c9e5 100644 --- a/openapi/index.yaml +++ b/openapi/index.yaml @@ -21,7 +21,7 @@ paths: $ref: paths/auth/login/index.yaml "/auth/logout": $ref: paths/auth/logout/index.yaml - "/auth/oauth": + "/auth": $ref: paths/auth/oauth/index.yaml "/auth/oauth/{provider}": $ref: paths/auth/oauth/_provider/index.yaml diff --git a/openapi/paths/auth/oauth/oauth.yaml b/openapi/paths/auth/oauth/oauth.yaml index 516cad3..49f51e8 100644 --- a/openapi/paths/auth/oauth/oauth.yaml +++ b/openapi/paths/auth/oauth/oauth.yaml @@ -15,12 +15,23 @@ responses: public: type: boolean data: - type: array - example: - - github - - facebook - items: - type: string + type: object + properties: + name: + type: string + example: google + label: + type: string + example: Google + driver: + type: string + example: openid + icon: + type: string + example: google +'401': +$ref: ../../../components/responses.yaml#/UnauthorizedError +x-codeSamples: '401': $ref: ../../../components/responses.yaml#/UnauthorizedError x-codeSamples: