Skip to content

Instantly share code, notes, and snippets.

View nlsrchtr's full-sized avatar
😀

Niels R. nlsrchtr

😀
View GitHub Profile

Thanks for the development of this gem, it saved me a lot of time!

Since I would like to follow the JSON API conventions as much as possible, I'm wondering how I can switch the content-type completely to "application/vnd.api+json".

Doing this for the responses, I'm using:

before do
  content_type("application/vnd.api+json")
end