I know that you can indicate a "type" with a HAL link, like so:
{
_links: {
self: {
href: "http://example.site/api/orders/1",
hreflang: "en_US",
type: "application/hal+json"
}
}
}
But I'd like to explain the different types that are available at that href. For example, I want to state that both "application/hal+json" and "application/pdf" are valid representations Accept-ed by the resource URI.
Maybe something like:
{
_links: {
self: {
href: "http://example.site/api/orders/1",
hreflang: "en_US",
type: [
"application/hal+json",
"application/pdf"
]
}
}
}
or... ?
Is this possible? If so, how?