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

Would be nice to have a generic invoke-webrequest helper #86

Open
chadcarlton opened this issue Jun 28, 2024 · 0 comments
Open

Would be nice to have a generic invoke-webrequest helper #86

chadcarlton opened this issue Jun 28, 2024 · 0 comments

Comments

@chadcarlton
Copy link

chadcarlton commented Jun 28, 2024

Some other rest sdk's offer up a auth client assist that can help call rest apis that do not yet have a formal cmdlet.

This would be a more generic invoke-webrequest style cmdlet, where your existing auth configuration (env vars/Json) would be used, and users of this new cmdlet would just need to specify verb, payload (if PATCH or POST) and URI to call apis that do not yet have a formal cmdlet.

Ideally this cmdlet would handle getting a bearer token, issuing the HTTP call, and displaying the results.

Bonus points for this cmdlet having an optional flag that could automatically handle cursor/pagination responses (with merging the multi-response lists together into a single list) and single output from the cmdlet.

(I'll admit that last one is a little much, but definitely be cool!)

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