Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow base path elements to be ignored #240

Open
seppestas opened this issue Feb 15, 2024 · 0 comments
Open

Allow base path elements to be ignored #240

seppestas opened this issue Feb 15, 2024 · 0 comments

Comments

@seppestas
Copy link

I use an API that uses a base with a path, e.g example.com/api/rest.
This results in cli commands in the form of:

get-api-rest-foo
get-api-rest-bar-somearg-someotherarg
post-api-rest-foo
post-api-rest-bar-somearg-someotherarg

The API I use is quite verbose, with many, many arguments. As a result, some commands are ridiculously long, sometimes > 100 characters. I could off course add aliases, but I also have a stupid amount of endpoints. I tend to not need the extremely long endpoints, so I don't really want to touch them in my (auto-generated) OpenAPI spec.

It would be nice to have the option to remove the superfluous base path (api-rest-) portion from the commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant