forked from loafle/openapi-generator-original
Extended the api-class generation by a interface generation
This commit is contained in:
parent
049299f07f
commit
41e4fc79ae
@ -9,7 +9,16 @@ using {{modelPackage}};
|
||||
|
||||
namespace {{package}} {
|
||||
{{#operations}}
|
||||
public class {{classname}} {
|
||||
|
||||
public interface I{{classname}} {
|
||||
{{#operation}}
|
||||
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
|
||||
{{#returnType}}Task<{{{returnType}}}>{{/returnType}}{{^returnType}}Task{{/returnType}} {{nickname}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||
{{/operation}}
|
||||
}
|
||||
|
||||
public class {{classname}} : I{{classname}} {
|
||||
string basePath;
|
||||
protected RestClient restClient;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user