ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

HTML representation for browsers #12

Closed palexander closed 11 years ago

palexander commented 11 years ago

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']

palexander commented 11 years ago

This is implemented, including storing the API Key in a cookie