2026-05-30 11:31:17 -04:00
|
|
|
--- api.mustache
|
|
|
|
|
+++ api.mustache.modified
|
2026-07-20 15:06:51 +02:00
|
|
|
@@ -51,7 +51,7 @@
|
2025-03-06 18:27:43 +01:00
|
|
|
{{/allParams}}
|
2026-07-20 15:06:51 +02:00
|
|
|
Future<Response> {{{nickname}}}WithHttpInfo({{#allParams}}{{#required}}{{{dataType}}} {{{paramName}}},{{^-last}} {{/-last}}{{/required}}{{/allParams}}{{#hasOptionalParams}}{ {{#allParams}}{{^required}}{{{dataType}}}? {{{paramName}}},{{^-last}} {{/-last}}{{/required}}{{/allParams}} }{{/hasOptionalParams}}) async {
|
2025-03-06 18:27:43 +01:00
|
|
|
// ignore: prefer_const_declarations
|
|
|
|
|
- final path = r'{{{path}}}'{{#pathParams}}
|
|
|
|
|
+ final apiPath = r'{{{path}}}'{{#pathParams}}
|
|
|
|
|
.replaceAll({{=<% %>=}}'{<% baseName %>}'<%={{ }}=%>, {{{paramName}}}{{^isString}}.toString(){{/isString}}){{/pathParams}};
|
|
|
|
|
|
|
|
|
|
// ignore: prefer_final_locals
|
|
|
|
|
@@ -90,7 +90,7 @@
|
|
|
|
|
|
|
|
|
|
{{#isMultipart}}
|
|
|
|
|
bool hasFields = false;
|
|
|
|
|
- final mp = MultipartRequest('{{{httpMethod}}}', Uri.parse(path));
|
|
|
|
|
+ final mp = MultipartRequest('{{{httpMethod}}}', Uri.parse(apiPath));
|
|
|
|
|
{{#formParams}}
|
|
|
|
|
{{^isFile}}
|
|
|
|
|
if ({{{paramName}}} != null) {
|
2026-07-20 15:06:51 +02:00
|
|
|
@@ -121,7 +121,7 @@
|
2025-03-06 18:27:43 +01:00
|
|
|
{{/isMultipart}}
|
|
|
|
|
|
|
|
|
|
return apiClient.invokeAPI(
|
|
|
|
|
- path,
|
|
|
|
|
+ apiPath,
|
|
|
|
|
'{{{httpMethod}}}',
|
|
|
|
|
queryParams,
|
|
|
|
|
postBody,
|