File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,27 @@ Here's an example response from a blog that implements JSON API:
30
30
"attributes" : {
31
31
"title" : " JSON API paints my bikeshed!"
32
32
},
33
- "links" : {
34
- "self" : " http://example.com/posts/1" ,
33
+ "relationships" : {
35
34
"author" : {
36
- "self" : " http://example.com/posts/1/links/author" ,
37
- "related" : " http://example.com/posts/1/author" ,
35
+ "links" : {
36
+ "self" : " http://example.com/posts/1/relationships/author" ,
37
+ "related" : " http://example.com/posts/1/author"
38
+ },
38
39
"linkage" : { "type" : " people" , "id" : " 9" }
39
40
},
40
41
"comments" : {
41
- "self" : " http://example.com/posts/1/links/comments" ,
42
- "related" : " http://example.com/posts/1/comments" ,
42
+ "links" : {
43
+ "self" : " http://example.com/posts/1/relationships/comments" ,
44
+ "related" : " http://example.com/posts/1/comments"
45
+ },
43
46
"linkage" : [
44
47
{ "type" : " comments" , "id" : " 5" },
45
48
{ "type" : " comments" , "id" : " 12" }
46
49
]
47
50
}
51
+ },
52
+ "links" : {
53
+ "self" : " http://example.com/posts/1"
48
54
}
49
55
}],
50
56
"included" : [{
You can’t perform that action at this time.
0 commit comments