Use application/hal+json as default Content-Type and add to Accept header#81
Conversation
|
Needs tests, CHANGELOG and possible README updates please. |
|
I think the At least according to the spec: https://github.com/mikekelly/hal_specification/blob/master/hal_specification.md#how-to-serve-hal |
|
You mean the default content-type? Yes. |
|
I'll update the CHANGELOG in a bit |
|
For now tagged it as |
|
This is good, would you mind rebasing and squashing your commits please? |
add application/hal+json to 'Accept' header add custom middleware for json+hal
|
Done, and what do you think of my suggestion in #80? |
Use application/hal+json as default Content-Type and add to Accept header
|
I did comment on #80, I would take the change, just needs README, CHANGELOG, tests, etc. |
|
Yeah I know, I meant to wait with the release because it could break things. |
Not every api accepts the
application/jsonheader.