Skip to content

Ability to have all methods on a single DefaultApi #53

@cge-taal

Description

@cge-taal

Hi,

Thanks for the nice work.

For a simple use-case I would like a single api definition for all my methods. So

const api = new DefaultApi(...)

api.getPets(...)
api.getCars(...)

instead of

const petApi = new PetApi(...)
petApi.getPets(...)

const carApi = new CarApi(...)
carApi.getCars(...)

I've tried to achieve this with @openapi-generator-plus/typescript-fetch-client-generator2, but so far have no luck.

I understand everything should be possible with custom templates, but not sure I have time for that at the moment.

Any advice would be appreciated.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions