A simple Server, for sending and loading unencrypted messages
Path | Form Values | Queries | Returns |
---|---|---|---|
/register | username: The alias of the user password: used for logging in and generating the users token |
- | - |
/login | username: The alias of the user password: the password, set when registering |
- | Users token |
/send | token: The token, obtained when logged in message: the message, which is wanted to send |
chat: the chats id, obtained with /chats | - |
/load | - | id: the chats id | All the chats messages, formatted |
/chats | - | - | All Chats, ID and Name |