@@ -18,6 +18,7 @@ final collectionFull = HttpResponse(200,
18
18
'next' : 'http://example.com/articles?page[offset]=2' ,
19
19
'last' : 'http://example.com/articles?page[offset]=10'
20
20
},
21
+ 'meta' : {'hello' : 'world' },
21
22
'data' : [
22
23
{
23
24
'type' : 'articles' ,
@@ -85,6 +86,7 @@ final collectionFull = HttpResponse(200,
85
86
final primaryResource = HttpResponse (200 ,
86
87
body: jsonEncode ({
87
88
'links' : {'self' : 'http://example.com/articles/1' },
89
+ 'meta' : {'hello' : 'world' },
88
90
'data' : {
89
91
'type' : 'articles' ,
90
92
'id' : '1' ,
@@ -134,6 +136,7 @@ final primaryResource = HttpResponse(200,
134
136
final relatedResourceNull = HttpResponse (200 ,
135
137
body: jsonEncode ({
136
138
'links' : {'self' : 'http://example.com/articles/1/author' },
139
+ 'meta' : {'hello' : 'world' },
137
140
'data' : null
138
141
}))
139
142
..headers.addAll ({'Content-Type' : mediaType});
@@ -143,6 +146,7 @@ final one = HttpResponse(200,
143
146
'self' : '/articles/1/relationships/author' ,
144
147
'related' : '/articles/1/author'
145
148
},
149
+ 'meta' : {'hello' : 'world' },
146
150
'data' : {'type' : 'people' , 'id' : '12' },
147
151
'included' : [
148
152
{
@@ -187,6 +191,7 @@ final oneEmpty = HttpResponse(200,
187
191
'self' : '/articles/1/relationships/author' ,
188
192
'related' : '/articles/1/author'
189
193
},
194
+ 'meta' : {'hello' : 'world' },
190
195
'data' : null ,
191
196
'included' : [
192
197
{
@@ -231,6 +236,7 @@ final many = HttpResponse(200,
231
236
'self' : '/articles/1/relationships/tags' ,
232
237
'related' : '/articles/1/tags'
233
238
},
239
+ 'meta' : {'hello' : 'world' },
234
240
'data' : [
235
241
{'type' : 'tags' , 'id' : '12' }
236
242
]
@@ -241,6 +247,7 @@ final noContent = HttpResponse(204);
241
247
242
248
final error422 = HttpResponse (422 ,
243
249
body: jsonEncode ({
250
+ 'meta' : {'hello' : 'world' },
244
251
'errors' : [
245
252
{
246
253
'status' : '422' ,
0 commit comments