- Brandon Hurrington | Manish B KC | Marisha Hoza | Peter Lee
A translation chat app geared towards groups of foreign language enthusiasts.
- connect: opens up a web socket connection for the front-end client and store the connection in dynamo db.
- disconnect: closes the specified connection and releases it from the dynamo db.
- updateconnection: expression route to append identifier information to the existing connections.
- sendmessage: Broadcasts message to specified connections
- translate: Receives JSON object that specifies message, source and target languages to hit the AWS translate service.
-
Method1: POST
-
createuser: Receives JSON object from the front end and saves the user into dynamo db.
-
Response: JSON object
-
-
Method2: GET
- get-user: user id is passed into the query parameters and queries database to return the JSON object representation of the user in dynamo db.
- Response: JSON object
-
sendmessage
{ "action" : "sendmessage", . . . "roomId" : "unique Room ID associated with the User" } -
Response: Message Broadcast to the specified roomId.
-
translateText
{ "message" : "Hello", "source" : "en", "destination" : "es" } -
Response: Message Object (JSON) with message being translated.