mirror of
https://github.com/foss42/apidash.git
synced 2025-06-17 20:16:27 +08:00
POST 2 test updates
This commit is contained in:
@ -115,7 +115,12 @@ void main() {
|
||||
--url 'https://api.apidash.dev/case/lower' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"text": "I LOVE Flutter"
|
||||
"text": "I LOVE Flutter",
|
||||
"flag": null,
|
||||
"male": true,
|
||||
"female": false,
|
||||
"no": 1.2,
|
||||
"arr": ["null", "true", "false", null]
|
||||
}'""";
|
||||
expect(curlCodeGen.getCode(requestModelPost2, "https"), expectedCode);
|
||||
});
|
||||
|
@ -409,7 +409,12 @@ void main() async {
|
||||
var uri = Uri.parse('https://api.apidash.dev/case/lower');
|
||||
|
||||
String body = r'''{
|
||||
"text": "I LOVE Flutter"
|
||||
"text": "I LOVE Flutter",
|
||||
"flag": null,
|
||||
"male": true,
|
||||
"female": false,
|
||||
"no": 1.2,
|
||||
"arr": ["null", "true", "false", null]
|
||||
}''';
|
||||
|
||||
var headers = {'content-type': 'application/json'};
|
||||
|
@ -383,7 +383,7 @@ axios(config)
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
data: "{\n\"text\": \"I LOVE Flutter\"\n}"
|
||||
data: "{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
|
||||
};
|
||||
|
||||
axios(config)
|
||||
|
@ -429,7 +429,7 @@ let options = {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body:
|
||||
"{\n\"text\": \"I LOVE Flutter\"\n}"
|
||||
"{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
|
||||
};
|
||||
|
||||
let status;
|
||||
|
@ -415,7 +415,7 @@ let config = {
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
data: "{\n\"text\": \"I LOVE Flutter\"\n}"
|
||||
data: "{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
|
||||
};
|
||||
|
||||
axios(config)
|
||||
|
@ -451,7 +451,7 @@ let options = {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body:
|
||||
"{\n\"text\": \"I LOVE Flutter\"\n}"
|
||||
"{\n\"text\": \"I LOVE Flutter\",\n\"flag\": null,\n\"male\": true,\n\"female\": false,\n\"no\": 1.2,\n\"arr\": [\"null\", \"true\", \"false\", null]\n}"
|
||||
};
|
||||
|
||||
let status;
|
||||
|
Reference in New Issue
Block a user