Created
August 9, 2021 13:41
-
-
Save chunleng/82fd35934729d14587396b5454e1591b to your computer and use it in GitHub Desktop.
Medium: OpenAPI and CodeGen - Codegen Part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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