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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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?)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are link headers?

A

links defined in http headers, not in representation bodies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly