@@ -37,7 +37,9 @@ axios(config)
37
37
url: 'https://api.apidash.dev/country/data',
38
38
method: 'get',
39
39
params: {
40
- "code": "US"
40
+ "code": [
41
+ "US"
42
+ ]
41
43
}
42
44
};
43
45
@@ -64,7 +66,10 @@ axios(config)
64
66
url: 'https://api.apidash.dev/country/data',
65
67
method: 'get',
66
68
params: {
67
- "code": "IND"
69
+ "code": [
70
+ "IND",
71
+ "US"
72
+ ]
68
73
}
69
74
};
70
75
@@ -91,11 +96,21 @@ axios(config)
91
96
url: 'https://api.apidash.dev/humanize/social',
92
97
method: 'get',
93
98
params: {
94
- "num": "8700000",
95
- "digits": "3",
96
- "system": "SS",
97
- "add_space": "true",
98
- "trailing_zeros": "true"
99
+ "num": [
100
+ "8700000"
101
+ ],
102
+ "digits": [
103
+ "3"
104
+ ],
105
+ "system": [
106
+ "SS"
107
+ ],
108
+ "add_space": [
109
+ "true"
110
+ ],
111
+ "trailing_zeros": [
112
+ "true"
113
+ ]
99
114
}
100
115
};
101
116
@@ -149,7 +164,9 @@ axios(config)
149
164
url: 'https://api.github.com/repos/foss42/apidash',
150
165
method: 'get',
151
166
params: {
152
- "raw": "true"
167
+ "raw": [
168
+ "true"
169
+ ]
153
170
},
154
171
headers: {
155
172
"User-Agent": "Test Agent"
@@ -203,7 +220,9 @@ axios(config)
203
220
url: 'https://api.github.com/repos/foss42/apidash',
204
221
method: 'get',
205
222
params: {
206
- "raw": "true"
223
+ "raw": [
224
+ "true"
225
+ ]
207
226
},
208
227
headers: {
209
228
"User-Agent": "Test Agent"
@@ -233,8 +252,12 @@ axios(config)
233
252
url: 'https://api.apidash.dev/humanize/social',
234
253
method: 'get',
235
254
params: {
236
- "num": "8700000",
237
- "add_space": "true"
255
+ "num": [
256
+ "8700000"
257
+ ],
258
+ "add_space": [
259
+ "true"
260
+ ]
238
261
}
239
262
};
240
263
@@ -288,8 +311,12 @@ axios(config)
288
311
url: 'https://api.apidash.dev/humanize/social',
289
312
method: 'get',
290
313
params: {
291
- "num": "8700000",
292
- "digits": "3"
314
+ "num": [
315
+ "8700000"
316
+ ],
317
+ "digits": [
318
+ "3"
319
+ ]
293
320
},
294
321
headers: {
295
322
"User-Agent": "Test Agent"
@@ -609,8 +636,12 @@ axios(config)
609
636
url: 'https://api.apidash.dev/io/form',
610
637
method: 'post',
611
638
params: {
612
- "size": "2",
613
- "len": "3"
639
+ "size": [
640
+ "2"
641
+ ],
642
+ "len": [
643
+ "3"
644
+ ]
614
645
},
615
646
headers: {
616
647
"Content-Type": "multipart/form-data"
@@ -647,8 +678,12 @@ const config = {
647
678
url: 'https://api.apidash.dev/io/img',
648
679
method: 'post',
649
680
params: {
650
- "size": "2",
651
- "len": "3"
681
+ "size": [
682
+ "2"
683
+ ],
684
+ "len": [
685
+ "3"
686
+ ]
652
687
},
653
688
headers: {
654
689
"Content-Type": "multipart/form-data",
@@ -682,11 +717,13 @@ axios(config)
682
717
683
718
group ('PUT Request' , () {
684
719
test ('PUT 1' , () {
685
- const expectedCode = r"""const config = {
720
+ const expectedCode = r"""
721
+ const config = {
686
722
url: 'https://reqres.in/api/users/2',
687
723
method: 'put',
688
724
headers: {
689
- "Content-Type": "application/json"
725
+ "Content-Type": "application/json",
726
+ "x-api-key": "reqres-free-v1"
690
727
},
691
728
data: "{\n\"name\": \"morpheus\",\n\"job\": \"zion resident\"\n}"
692
729
};
@@ -712,11 +749,13 @@ axios(config)
712
749
713
750
group ('PATCH Request' , () {
714
751
test ('PATCH 1' , () {
715
- const expectedCode = r"""const config = {
752
+ const expectedCode = r"""
753
+ const config = {
716
754
url: 'https://reqres.in/api/users/2',
717
755
method: 'patch',
718
756
headers: {
719
- "Content-Type": "application/json"
757
+ "Content-Type": "application/json",
758
+ "x-api-key": "reqres-free-v1"
720
759
},
721
760
data: "{\n\"name\": \"marfeus\",\n\"job\": \"accountant\"\n}"
722
761
};
@@ -742,9 +781,13 @@ axios(config)
742
781
743
782
group ('DELETE Request' , () {
744
783
test ('DELETE 1' , () {
745
- const expectedCode = r"""const config = {
784
+ const expectedCode = r"""
785
+ const config = {
746
786
url: 'https://reqres.in/api/users/2',
747
- method: 'delete'
787
+ method: 'delete',
788
+ headers: {
789
+ "x-api-key": "reqres-free-v1"
790
+ }
748
791
};
749
792
750
793
axios(config)
@@ -766,11 +809,13 @@ axios(config)
766
809
});
767
810
768
811
test ('DELETE 2' , () {
769
- const expectedCode = r"""const config = {
812
+ const expectedCode = r"""
813
+ const config = {
770
814
url: 'https://reqres.in/api/users/2',
771
815
method: 'delete',
772
816
headers: {
773
- "Content-Type": "application/json"
817
+ "Content-Type": "application/json",
818
+ "x-api-key": "reqres-free-v1"
774
819
},
775
820
data: "{\n\"name\": \"marfeus\",\n\"job\": \"accountant\"\n}"
776
821
};
0 commit comments