Skip to content

Print API requests made by CLI #1565

Closed as not planned
Closed as not planned
@dwahler

Description

@dwahler

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

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions