IdleLands / idle.land

[DEPRECATED] A Meteor web interface for IdleLands.
http://idle.land
MIT License
1 stars 4 forks source link

Support .json extensions in URI #68

Open ndrut opened 9 years ago

ndrut commented 9 years ago

This would facilitate a method for URLs such as:

http://idle.land/s/stats/jawsome.json

To return the JSON object for that player. (Effectively the download JSON option in a different delivery method)

This behavior is being found increasingly and very well utilized especially in sites like reddit ( http://www.reddit.com/new.json ).

seiyria commented 9 years ago

Would you want this for things like groupings and individual sets of data? ie,

http://idle.land/s/guilds.json http://idle.land/s/guild/Styx.json

Or just the specific nodes, like players, guilds, etc?

Additionally, would you want this for any page like Global Stats?

ndrut commented 9 years ago

It would be nice for it to be supported on all URIs, but at the very least it could be on the individuals, like

seiyria commented 9 years ago

I see. Unfortunately I've got no idea how to do this, so I'll leave this open for a while, pending further research.