This came as a surprise to me. Maybe I'm missing something here? The HAL spec states "A HAL Document uses the format described in [RFC4627] and has the media type "application/hal+json". The example directly below that statement reads
GET /orders/523 HTTP/1.1
Host: example.org
Accept: application/hal+json
HTTP/1.1 200 OK
Content-Type: application/hal+json
That's why I would have expected the HAL talk example to behave the same, that is
respond to requests with "Accept: application/hal+json"
use "Content-type: application/hal+json" in its responses
maybe, in addition also respond to requests with "Accept: application/json", as it is doing now
When requesting HAL talk with "Accept: application/json" everything works fine:
But with "Accept: application/hal+json" it doesn't:
This came as a surprise to me. Maybe I'm missing something here? The HAL spec states "A HAL Document uses the format described in [RFC4627] and has the media type "application/hal+json". The example directly below that statement reads
That's why I would have expected the HAL talk example to behave the same, that is
Might be related to #22.