PRX/PRX.org-Backend — pull request #18 by chrisrhoden (2014-03-20 20:03:51+00:00)
Title: Content Negotiation Tweaks

`params[:format]` overrides content-negotiation in rails, so having `format:` in our routes always overrode the value.

To add back browsability (i.e. can click around the API via a browser) we take the requests that rails overrides as HTML only (i.e. direct browser traffic) and serve it as JSON.

Requests made with an accept header of application/hal+json will receive that in their content-type.