powered by Jive Software

Rest Api Plugin

I have used rest api plugin with openfire. But while using get all chat rooms api it proivdes only xml response not json response. i need json response only. Is this feature is available or not?

yes it is.

Openfire REST API provides XML and JSON as data format. The default data format is XML.

To get a JSON result, please add “Accept application/json” to the request header.

If you want to create a resource with JSON data format, please add “Content-Type: application/json“.


Thanks. it works.