Web Linking Flashcards
1
Q
How do you use links in JSON objects
A
For each link, use a link property (or links property to include several links) whose value is a link object or an array. For each link object include the href and rel properties.
2
Q
Explain the href and rel properties of a link
A
href = URI
rel conveys the semantics of a link (what resource? significance? supported actions? supported representations?)
3
Q
What are link headers?
A
links defined in http headers, not in representation bodies
4
Q
How do you assign link relation types
A
rel can have standard values (self, alternate, index,…) or you can create your own. Express the self created type as an URI and provide documentation at the endpoint.