Mostly you can add .json to the end of any url to get what rails is sending.
.json
Reverse engineer the Discourse API