Skip to content

Re-Export apis like we do models #554

Closed

Description

@rtaycher

Is your feature request related to a problem? Please describe.

Sometimes there are a lot of apis to import to even do a simple thing

Describe the solution you'd like

Models are re-exported, allowing us to

import my-openapi-lib.models as m
from my-openapi-lib.api.do_the_things import create_thing_to_do
create_thing_to_do.sync(client=c, json_body=m.ThingModel(...))

# I'd like to be able to do
from my-openapi-lib import api
api.do_the_things.create_thing_to_do.sync(client=c, json_body=m.ThingModel(...))
# and
from my-openapi-lib.api import do_the_things
do_the_things.create_thing_to_do.sync(client=c, json_body=m.ThingModel(...))

Activity

  1. added
    ✨ enhancement
    on Dec 22, 2021
  2. locked and limited conversation to collaborators on Aug 13, 2023
  3. converted this issue into a discussion #820 on Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions