File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ api.get('anime')
147147
148148// Fetching resources (get/fetch)
149149api .fetch (' anime' )
150- api .fetch (' anime' , { filter: { id: 1 } })
150+ api .fetch (' anime' , { params : { filter: { id: 1 } } })
151151api .fetch (' anime/1/episodes' )
152152api .fetch (' anime/1/relationships/episodes' )
153153
@@ -167,17 +167,19 @@ api.remove('post', 1)
167167
168168// JSON:API parameters
169169api .get (' users' , {
170- include: ' followers,waifu.character' ,
171- fields: {
172- users: ' slug,followers,waifu'
173- },
174- filter: {
175- slug: ' wopian'
176- },
177- sort: ' -id' ,
178- page: {
179- limit: 5 ,
180- offset: 0
170+ params: {
171+ include: ' followers,waifu.character' ,
172+ fields: {
173+ users: ' slug,followers,waifu'
174+ },
175+ filter: {
176+ slug: ' wopian'
177+ },
178+ sort: ' -id' ,
179+ page: {
180+ limit: 5 ,
181+ offset: 0
182+ }
181183 }
182184})
183185```
You can’t perform that action at this time.
0 commit comments