Files
llm/templates/services/api.mustache
2024-05-27 19:05:54 +02:00

24 lines
741 B
Plaintext

import type { Configuration } from "../configuration";
import type { HttpFile, RequestContext, ResponseContext } from "../http/http";
{{#imports}}
import { {{classname}} } from "{{filename}}";
{{/imports}}
{{#operations}}
export abstract class Abstract{{classname}}RequestFactory {
{{#operation}}
public abstract {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: Configuration): Promise<RequestContext>;
{{/operation}}
}
export abstract class Abstract{{classname}}ResponseProcessor {
{{#operation}}
public abstract {{nickname}}(response: ResponseContext): Promise<{{{returnType}}} {{^returnType}}void{{/returnType}}>;
{{/operation}}
}
{{/operations}}