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.
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.
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.