mikekelly / hal_specification

HAL Specification
http://stateless.co/hal_specification.html
620 stars 58 forks source link

Custom link properties #26

Closed richardszalay closed 9 years ago

richardszalay commented 9 years ago

I have a scenario where a "link" also requires additional data (eg. a background "texture" image, more of a visual flourish than semantic content), but otherwise conforms to being a link (that is, only the title and href are required).

What's the recommendation in this scenario? Can additional properties be added to links? If not, how is this type of data represented? It would seem odd to define a document/resource simply for this additional piece of metadata.

richardszalay commented 9 years ago

Scratch this. I eventually stumbled onto this discussion, which cleared up the direction I should take.