CampFireManager / cfm2

CampFireManager is a talk scheduling tool for conferences - such as barcamps or fixed schedule conferences
http://campfiremanager.info
16 stars 9 forks source link

API access with HTML mime type #140

Closed NotBobTheBuilder closed 11 years ago

NotBobTheBuilder commented 11 years ago

When a client requests a page from the API with an "Accept:" header specifying HTML, CampFireManager responds with a table whose content is based on the response.

Could it not be more useful to return a "prettified" copy of the data in JSON, as per this demo on jsfiddle?

My thought process behind this is that the API uses JSON as its primary serialisation format, and anyone looking at the API is probably doing it to learn the structure of the response, not to read the raw data. For this reason, a nicely-formatted JSON response would be much more useful than a table.

JonTheNiceGuy commented 11 years ago

@NotBobTheBuilder does this work for you? :)

NotBobTheBuilder commented 11 years ago

Beautiful!