Skip to content

API Documentation

Artem Bondarchuk edited this page Nov 24, 2023 · 4 revisions

GET /users/{id}


Authorization

Bearer <JWT AccessToken>

Parameters

  • Path
id: integer | "me"

Responses

  • 200 (OK)
{
  "id": 0
  "picture": "string"
  "name": "string"
}
  • 500 (Internal Server Error)
{
  "err": "string"
}

PATCH /users/me


Authorization

Bearer <JWT AccessToken>

Request Body

{
  "picture": "string"
  "name": "string"
}

Responses

  • 200 (OK)
{
  "id": 0
  "picture": "string"
  "name": "string"
}
  • 400 (Bad Request)
{
  "err": "string"
}

DELETE /users/me


Authorization

Bearer <JWT AccessToken>

Responses

  • 200 (OK)
{
  "message": "Successfully deleted"
}

GET /auth/google

GET /auth/google/callback

GET /games/{id}

GET /games

POST /games/{id}/favorite

PATCH /games

DELETE /games

GET /sessions

GET /sessions/{id}

GET /ws