Skip to content

REST API

register

Registers a new user in the system.

  • Request type: POST

  • Parameters:

    • email (string): The email of the user.
    • username (string): The username of the user.
    • password (string): The password of the user.

login

Logs an existing user into the system.

  • Request type: POST

  • Parameters:

    • username (string): The username of the user.
    • password (string): The password of the user.

create_game_room

Creates a new game room.

  • Request type: POST

  • Parameters:

    • max_players (string): The maximum number of players allowed in the room.

find_game_rooms

Finds all the available game rooms.

  • Request type: POST

join_game_room

Joins an existing game room.

  • Request type: POST

  • Parameters:

    • room_id (string): The unique id of the room to join.