REST-ful interface for chat