I've seen CURIEs described in the HAL specification. At first glance, it looks like a way to provide templating for URIs. However, I also see it prominently mentioned that it can be used to access documentation on a rel
. Which one is it? Is it simply a templating mechanism? Does anyone have an example for a good use case?
Also, would the following be a legal use of a CURIE? Or should it only be used to provide documentation on a rel
?
{
"id": 1,
"name": "Social Media Bundle",
"_links": {
"self": {
"href": "http://my.api.com/bundles/1"
},
"curies": {
"name": "bundle",
"href": "http://my.api.com/bundles/1{rel}"
"templated": true
},
"bundle:channels": {
"href": "/channels"
}
}
}
Here bundle:channels
would be expanded to http://my.api.com/bundles/1/channels
.