Cannot get REST API to work on EC2 node

Hello!

I’m trying to get the REST API plug in working on Openfire 4.8.3. Whilst I have the server and chat rooms up and running, I am struggling with the rest API. I am currently using postman to try and retrieve a list of users from the server:

my_server:9090/plugins/restapi/v1/users

This works when I use the REST API example here:my_server:9090/plugins/restapi/docs/index.html.

It does not work when I use Postman. Instead I get HTML back which, when rendered looks like this:

I get exactly the same issue with Openfire 4.9.2.

Help please!

I’ve helped myself… Fix is here: