Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse content with application/hal+json content type as JSON #573

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

JonMidhir
Copy link
Contributor

This change allows the parsing of content with application/hal+json content-type (which is just JSON anyway) as JSON when using the #parsed_response method.

Currently this content type is ignored and the method returns a String. Since HAL is just JSON with an additional specification for how some metadata should be included it can be parsed as regular JSON.

More on HAL here: http://stateless.co/hal_specification.html

An example of it in the wild in the Stellar Horizon API: https://horizon.stellar.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants