Room Chat Controller

Send Chat Message

Path: /api/chat/room

Method: POST

Example Http Request

POST /api/chat/room HTTP/1.1
Content-Type: application/json
Content-Length: 151
Host: localhost:8080

{"topic":"event-topic","message":"{\"msg\":\"This is a \\\"test\\\" message\",\"guid\":\"62c7193f-1435-48ab-82e4-ed3b8e7d72fa\",\"from\":\"Mr Test\"}"}

Example Http Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers

Example Curl Request

$ curl 'http://localhost:8080/api/chat/room' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{"topic":"event-topic","message":"{\"msg\":\"This is a \\\"test\\\" message\",\"guid\":\"62c7193f-1435-48ab-82e4-ed3b8e7d72fa\",\"from\":\"Mr Test\"}"}'

Room Chat Controller