mirror of
https://github.com/foss42/apidash.git
synced 2025-06-30 21:06:43 +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
|
||||
String httpMethod(String methodName) {
|
||||
switch (methodName) {
|
||||
|
Reference in New Issue
Block a user