An example of restapi for a chat.
A chat has the following properties:
- an id
- the user id created the chat
- the date when the chat is created
- the date last updated (maybe)
The rest api should support the following features:
- search through the chat in the system
- search by user, date range
- creation of a chat
- adding message to the chat