Skip to content

Instantly share code, notes, and snippets.

@chunleng
Created August 9, 2021 13:41
Show Gist options
  • Save chunleng/82fd35934729d14587396b5454e1591b to your computer and use it in GitHub Desktop.
Save chunleng/82fd35934729d14587396b5454e1591b to your computer and use it in GitHub Desktop.
Medium: OpenAPI and CodeGen - Codegen Part 2
/**
* FirstApi - object-oriented interface
* @export
* @class FirstApi
* @extends {BaseAPI}
*/
export class FirstApi extends BaseAPI {
/**
*
* @summary Get Foo
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof FirstApi
*/
public getFoo(options?: any) {
return FirstApiFp(this.configuration).getFoo(options).then((request) => request(this.axios, this.basePath));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment