mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
commit
10c5a8346f
@ -27,7 +27,7 @@ public class {{classname}} {
|
|||||||
{{#operation}}
|
{{#operation}}
|
||||||
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
|
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException {
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String path = "{{path}}".replaceAll("\\{format\\}","json"){{#pathParams}}.replaceAll("\\{" + "{{paramName}}" + "\\}", apiInvoker.escapeString({{{paramName}}})){{/pathParams}};
|
String path = "{{path}}".replaceAll("\\{format\\}","json"){{#pathParams}}.replaceAll("\\{" + "{{paramName}}" + "\\}", apiInvoker.escapeString({{{paramName}}}.toString())){{/pathParams}};
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
Map<String, String> queryParams = new HashMap<String, String>();
|
Map<String, String> queryParams = new HashMap<String, String>();
|
||||||
|
@ -77,7 +77,7 @@ class BasicJavaGenerator extends BasicGenerator {
|
|||||||
"Date" -> "java.util.Date",
|
"Date" -> "java.util.Date",
|
||||||
"Array" -> "java.util.*",
|
"Array" -> "java.util.*",
|
||||||
"ArrayList" -> "java.util.*",
|
"ArrayList" -> "java.util.*",
|
||||||
"List" -> "java.util.List")
|
"List" -> "java.util.*")
|
||||||
|
|
||||||
// package for models
|
// package for models
|
||||||
override def modelPackage = Some("com.wordnik.client.model")
|
override def modelPackage = Some("com.wordnik.client.model")
|
||||||
|
Loading…
Reference in New Issue
Block a user