I use Spring to create a RESTful service, and I'm curious about the syntax for media types.
In my opinion, the common media type for HAL + JSON is application/hal+json . In addition, from my point of view, a special type of media type that supports HAL + JSON will be similar to application/vnd.api.entity.hal+json . However, I also saw application/vnd.api.entity+hal+json . Which one is correct?
Also, what would be the correct wild-card type for HAL + JSON? This will be application/*.hal+json or application/*+hal+json . Links to any suitable RFC will be appreciated. Thanks!
Vivin paliath
source share