Skip to main content

Me API

General notes

This endpoint is used to communicate with Google related applications.

Content

Available methods:

OAuth2

Get Access Token From Code

GET /google/auth

Method for redirecting to Google login.

Request

GET /google/auth HTTP/1.1
Content-Type: application/json

Response

202 Accepted


Revoke Refresh Token

GET api/v0/google/oauth/revoke-token

This method requires authenticated user

Method that revokes refresh token for authenticated user.

Request

GET /api/v0/google/oauth/revoke-token HTTP/1.1
Content-Type: application/json

Response

200 OK

{}

401 Unauthorized

{
"type": "Unauthenticated",
"message": "Pro tuto akci musíte být přihlášen.",
"id": "1ec9fe4f-0687-47f5-8049-1f4e7be21851"
}

500 Internal Server Error

{
"type": "GeneralError",
"message": "Uživatel nemá k profilu přidružený refresh token.",
"id": "ea6e7336-bbb0-44f9-9bba-560bce99d448"
}
{
"type": "GeneralError",
"message": "[Google reason]",
"id": "ea6e7336-bbb0-44f9-9bba-560bce99d448"
}