API structure
axbg opened this issue · comments
Alex Bișag commented
Alex Bișag commented
API Design
/ws - Web-Socket endpoint
/api
/user - POST - create a new user specifying username, input_language, output_language
/user - PUT - updates values for input_language and output_language
/room - GET - get a list of all public rooms
/room - POST - create a new room specifying name and public/private characteristic
/room - DELETE - exit from a room (if the admin exits a room the room is destroyed)
/room/join - POST - join a room (either public or private)
/room/promote - PUT - delegate a new admin for a room
/room/kick/:user_id - shadow bans a user
lorenabodea commented
just remember that on join room you will also get the preferences