This commit is contained in:
Ashita Prasad
2023-08-30 01:29:06 +05:30
parent 3a0f341f08
commit ac069efc18
4 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import 'package:apidash/codegen/python/pkg_request.dart';
import 'package:apidash/models/models.dart' show KVRow, RequestModel;
import 'package:apidash/models/models.dart';
import 'package:test/test.dart';
import 'package:apidash/consts.dart';
@ -138,11 +138,11 @@ main()""";
url: 'https://jsonplaceholder.typicode.com/posts',
method: HTTPVerb.get,
requestParams: [
KVRow('userId', 1),
NameValueModel(name: 'userId', value: 1),
],
requestHeaders: [
KVRow('Custom-Header-1', 'Value-1'),
KVRow('Custom-Header-2', 'Value-2')
NameValueModel(name: 'Custom-Header-1', value: 'Value-1'),
NameValueModel(name: 'Custom-Header-2', value: 'Value-2')
],
id: '1',
);