Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Print API requests made by CLI #1565

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

Closed
Tracked by #1395
dwahler opened this issue May 18, 2022 · 2 comments
Closed
Tracked by #1395

Print API requests made by CLI #1565

dwahler opened this issue May 18, 2022 · 2 comments
Assignees
Labels
api Area: HTTP API

Comments

@dwahler
Copy link
Contributor

dwahler commented May 18, 2022

What is your suggestion?

The coder CLI tool should have a flag that makes it print the requests it's making to coderd, and possibly the responses as well.

Why do you want this feature?

This complements the API documentation by helping users to explore the different requests that are involved in a particular piece of functionality. (For example, coder create makes a few requests to get information about a template's schema and resources before actually creating a workspace.) It could also be useful as a debugging aid.

This is somewhat inspired by similar functionality in kubectl, which prints requested URLs with the --v=6 flag, and additional details at higher verbosity levels.

Are you interested in submitting a PR for this?

Yes

@ammario
Copy link
Member

ammario commented May 23, 2022

This is a good suggestion but I don't think this is important enough for community edition. There are workarounds using HTTP interceptors as well.

@ketang
Copy link
Contributor

ketang commented May 23, 2022

Agreed

@misskniss misskniss added the api Area: HTTP API label May 24, 2022
@misskniss misskniss modified the milestones: Community MVP, Post-MVP Jun 3, 2022
@kylecarbs kylecarbs changed the title Feat: print API requests made by CLI Print API requests made by CLI Jun 7, 2022
@misskniss misskniss removed this from the Post-MVP milestone Jul 22, 2022
@f0ssel f0ssel closed this as completed Jul 28, 2022
@f0ssel f0ssel closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants