We should provide HTML back to browsers that is essentially the JSON representation but "prettified". We can display other things too, but the JSON should be the default.
Because the API is navigable, we'll want to do some things to facilitate that on the HTML representation, like storing the API key in a cookie so we don't need to rewrite URLs in the response. From sinatra:
request.cookies['apikey']
We should provide HTML back to browsers that is essentially the JSON representation but "prettified". We can display other things too, but the JSON should be the default.
Because the API is navigable, we'll want to do some things to facilitate that on the HTML representation, like storing the API key in a cookie so we don't need to rewrite URLs in the response. From sinatra: request.cookies['apikey']