How to serve HAL
HAL has a media type for both the JSON and XML variants, whos names are application/hal+json and application/hal+xml respectively.
When serving HAL over HTTP, the Content-Type of the response should contain the relevant media type name.
$ curl -H 'Accept: application/hal+json' https://api.artsy.net/api -I
HTTP/1.1 200 OKAY
Content-Type: application/json
```
$ curl -H 'Accept: applicatiomn/vnd.siren+json; application/hal+json' https://api.artsy.net/api -I
HTTP/1.1 400 Bad Request
--
Find all info about the Artsy.net API at https://developers.artsy.net.
---
You received this message because you are subscribed to the Google Groups "Artsy API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to artsy-api-develo...@googlegroups.com.
To post to this group, send email to artsy-api-...@googlegroups.com.
Visit this group at http://groups.google.com/group/artsy-api-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/artsy-api-developers/891c5a0f-2cf5-4b61-a77e-cd9218dd3dba%40googlegroups.com.