I'm using Spring to create a RESTful service and I'm curious about the syntax for media-types.
From my understanding, the general media-type for HAL+JSON is application/hal+json
. Also, from my understanding, a vendor-specific custom media-type that supports HAL+JSON would be something like application/vnd.api.entity.hal+json
. However, I have also seen application/vnd.api.entity+hal+json
. Which one is correct?
Also, what would the correct wild-card type be for HAL+JSON? Would it be application/*.hal+json
or application/*+hal+json
. Links to any pertinent RFC's would be appreciated. Thanks!
application/*+json
– ApaceAccept:
! It's for the media-type converter that handles mapping incoming JSON to DTO's (and vice-versa). – Apace