File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ Add the root key to your API is quite simple with AMS. The **Adapter** is what d
4
4
5
5
``` json
6
6
{
7
- id : 1,
8
- title: "Awesome Post Tile",
9
- content: "Post content"
7
+ "id" : 1 ,
8
+ " title" : " Awesome Post Tile" ,
9
+ " content" : " Post content"
10
10
}
11
11
```
12
12
23
23
24
24
``` json
25
25
{
26
- post: {
27
- id : 1,
28
- title: "Awesome Post Tile",
29
- content: "Post content"
26
+ " post" : {
27
+ "id" : 1 ,
28
+ " title" : " Awesome Post Tile" ,
29
+ " content" : " Post content"
30
30
}
31
31
}
32
32
```
@@ -35,16 +35,16 @@ or if it returns a collection:
35
35
36
36
``` json
37
37
{
38
- posts: [
38
+ " posts" : [
39
39
{
40
- id : 1,
41
- title: "Awesome Post Tile",
42
- content: "Post content"
40
+ "id" : 1 ,
41
+ " title" : " Awesome Post Tile" ,
42
+ " content" : " Post content"
43
43
},
44
44
{
45
- id : 2,
46
- title: "Another Post Tile",
47
- content: "Another post content"
45
+ "id" : 2 ,
46
+ " title" : " Another Post Tile" ,
47
+ " content" : " Another post content"
48
48
}
49
49
]
50
50
}
You can’t perform that action at this time.
0 commit comments