What are the available json paths?


(Mittineague) #1

I’m interested in putting together some JavaScript code to work with what information is available.

I have found mention of various JSON “pages” and would like to know if there is a list of all the possibilities.

So far I’ve found

http://[domain]/users/[username].json
http://[domain]/admin/users/[username].json
http://[domain]/admin/dashboard.json
http://[domain]/categories.json
http://[domain]/latest.json
http://[domain]/notifications.json

Oliver Twist voice - May I have some more please?


(Jeff Atwood) #2

Every URL works that way. So all of them.

Remember that Discourse is a JavaScript app, every time you click a link, the JavaScript retrieves data from the server in JSON format and repaints the screen.


(Mittineague) #3

Thanks. I’m still getting up to speed with Ember and didn’t realize that.

That makes things a lot easier.


(system) #4

(Sam Saffron) #5