@@ -15,7 +15,7 @@ const httpRequestModelGet2 = HttpRequestModel(
15
15
],
16
16
);
17
17
18
- /// GET request model with override query params
18
+ /// GET request model with query param having multiple values
19
19
const httpRequestModelGet3 = HttpRequestModel (
20
20
url: 'https://api.apidash.dev/country/data?code=US' ,
21
21
method: HTTPVerb .get ,
@@ -336,6 +336,9 @@ const httpRequestModelPost10 = HttpRequestModel(
336
336
const httpRequestModelPut1 = HttpRequestModel (
337
337
method: HTTPVerb .put,
338
338
url: 'https://reqres.in/api/users/2' ,
339
+ headers: [
340
+ NameValueModel (name: 'x-api-key' , value: 'reqres-free-v1' )
341
+ ],
339
342
bodyContentType: ContentType .json,
340
343
body: r"""{
341
344
"name": "morpheus",
@@ -348,6 +351,9 @@ const httpRequestModelPatch1 = HttpRequestModel(
348
351
method: HTTPVerb .patch,
349
352
url: 'https://reqres.in/api/users/2' ,
350
353
bodyContentType: ContentType .json,
354
+ headers: [
355
+ NameValueModel (name: 'x-api-key' , value: 'reqres-free-v1' )
356
+ ],
351
357
body: r"""{
352
358
"name": "marfeus",
353
359
"job": "accountant"
@@ -357,6 +363,9 @@ const httpRequestModelPatch1 = HttpRequestModel(
357
363
/// Basic DELETE request model
358
364
const httpRequestModelDelete1 = HttpRequestModel (
359
365
method: HTTPVerb .delete,
366
+ headers: [
367
+ NameValueModel (name: 'x-api-key' , value: 'reqres-free-v1' )
368
+ ],
360
369
url: 'https://reqres.in/api/users/2' ,
361
370
);
362
371
@@ -365,6 +374,9 @@ const httpRequestModelDelete2 = HttpRequestModel(
365
374
method: HTTPVerb .delete,
366
375
url: 'https://reqres.in/api/users/2' ,
367
376
bodyContentType: ContentType .json,
377
+ headers: [
378
+ NameValueModel (name: 'x-api-key' , value: 'reqres-free-v1' )
379
+ ],
368
380
body: r"""{
369
381
"name": "marfeus",
370
382
"job": "accountant"
0 commit comments