With Spring Data REST would it be possible to use a custom media type ? (meaning for example JSON:API / media type application/vnd.api+json rather than HAL and media type application/hal+json).
The documentation says - in several places (example) - that only media types application/hal+json and application/json are supported.
However, as far as I understand, Spring Data REST is build on top of Spring HATEOAS which does indeed support custom media types, so I'm thinking it should be possible.
I want to leverage the convenience of Spring Data REST in that I don't want to create my own controller classes. I like the fact that Spring Data REST does all that for me and I simply want to expose a Spring Data CRUD repository using a sane REST convention.
Based on this answer from VMWare developer it seems the topic has been debated and here's the reasoning:
Bottom line: not possible.