Skip to content

Commit 6ab21a6

Browse files
committed
adding api output
1 parent e0ef00c commit 6ab21a6

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

api-output.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"data": [
3+
{
4+
"id": "1",
5+
"type": "posts",
6+
"attributes": {
7+
"title": "First post"
8+
},
9+
"relationships": {
10+
"comments": {
11+
"data": [
12+
{
13+
"id": "5",
14+
"type": "comments"
15+
}
16+
]
17+
}
18+
}
19+
},
20+
{
21+
"id": "2",
22+
"type": "posts",
23+
"attributes": {
24+
"title": "Second post"
25+
},
26+
"relationships": {
27+
"comments": {
28+
"data": [
29+
{
30+
"id": "3",
31+
"type": "comments"
32+
}
33+
]
34+
}
35+
}
36+
}
37+
],
38+
"included": [
39+
{
40+
"id": "3",
41+
"type": "comments",
42+
"attributes": {
43+
"body": "first!"
44+
}
45+
},
46+
{
47+
"id": "5",
48+
"type": "comments",
49+
"attributes": {
50+
"body": "inane drivel"
51+
}
52+
}
53+
]
54+
}

0 commit comments

Comments
 (0)