mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
839 stars 157 forks source link

Force docs (curies) to be downloaded as JSON. #49

Closed bsodzik closed 9 years ago

bsodzik commented 10 years ago

When using iframe there is no control over HTTP headers. If REST service returns data in several formats then application/xml is preferred over application/json by all major browsers. Simple solution to that problem is to use ajax instead of iframe. That is what I implemented in this pull request and would be great if you would like to merge it into your main repository :)

mikekelly commented 9 years ago

it doesn't seem to make sense to use JSON for human readable docs