|
|
@ -5,6 +5,7 @@ |
|
|
providedIn: 'root', |
|
|
providedIn: 'root', |
|
|
}) |
|
|
}) |
|
|
export class <%= name %>Service { |
|
|
export class <%= name %>Service { |
|
|
|
|
|
private restService = inject(RestService); |
|
|
apiName = '<%= apiName %>';<% |
|
|
apiName = '<%= apiName %>';<% |
|
|
for (let {body, signature} of methods) { %> |
|
|
for (let {body, signature} of methods) { %> |
|
|
<% |
|
|
<% |
|
|
@ -26,6 +27,4 @@ export class <%= name %>Service { |
|
|
body: <%= body.body %>,<% } %> |
|
|
body: <%= body.body %>,<% } %> |
|
|
}, |
|
|
}, |
|
|
{ apiName: this.apiName,...config });<% } %> |
|
|
{ apiName: this.apiName,...config });<% } %> |
|
|
|
|
|
} |
|
|
constructor(private restService: RestService) {} |
|
|
|
|
|
} |
|
|
|