|
Chat applikasjon
|
Public Member Functions | |
| List< Message > | getMessages (@PathParam("userId1") int userId1, @PathParam("userId2") int userId2) |
| Message | newMessage (Message message) |
Message resource exposed at "/message" path
|
inline |
Method handling HTTP GET requests. The returned object will be sent to the client as a JSON object.
| userId1 | describes first user of the messages |
| userId2 | describes second user of the messages |
Method handling HTTP POST requests.
| message | the Message to be saved in database |