mirror of
https://github.com/foss42/apidash.git
synced 2025-07-01 05:30:54 +08:00
added body rendering templates
request body will be different based on whether or not the request contains files
This commit is contained in:
@ -61,6 +61,18 @@ var_dump(\$response);
|
|||||||
""";
|
""";
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
String kMultiPartBodyWithFiles = """
|
||||||
|
\$request_body = build_data_files(\$boundary, \$fields, \$files);
|
||||||
|
|
||||||
|
""";
|
||||||
|
|
||||||
|
//
|
||||||
|
String kMultiPartBodyWithoutFiles = """
|
||||||
|
\$request_body = build_data(\$boundary, \$fields);
|
||||||
|
|
||||||
|
""";
|
||||||
|
|
||||||
//function for http verb to curl mapping
|
//function for http verb to curl mapping
|
||||||
String httpMethod(String methodName) {
|
String httpMethod(String methodName) {
|
||||||
switch (methodName) {
|
switch (methodName) {
|
||||||
|
Reference in New Issue
Block a user