-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[public-api] Simple CLI tool to interact with Public API #9588
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
Conversation
12f6315
to
b81f6bb
Compare
should be part of |
@csweichel That's a good point. How do we want to use the first iteration? Should it eventually be a CLI that externals should be able to interact with to consume the API? Or do we want to merge it with My inclination is to keep it separate and gear more towards a CLI for the API only, which can be published and consumed by externals. |
/werft run without-vm=true 👍 started the job as gitpod-build-mp-papi-cmd-yolo.8 |
@easyCZ I'd start with the latter - go for Also, we're noticing a trend where |
b3b245b
to
74ec921
Compare
/werft run without-vm=true 👍 started the job as gitpod-build-mp-papi-cmd-yolo.12 |
@csweichel @geropl I've now moved this under |
I've tested this and it works like a charm. Can't wait for this to be merged 😍 Thanks for this, @easyCZ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for a minor nit.
/hold
Co-authored-by: Pavel Tumik <[email protected]>
/unhold |
Description
Adds
api workspaces get --id 123 --token "foo-bar" to interact with Public API. Creates a dir
apiunder
cmd` and gives code-ownership to WebApp.Related Issue(s)
Fixes #
How to test
Test the CLI works
Test with a local instance of Public API
, this will obtain a token you can use to access the through a CLI
4. Start the Public API locally with
cd components/public-api-server && go run main.go
5. Hit the local API using the CLI, here we need to use
--insecure
because we're not serving TLS certsYou'll likely get Not Found. To get a response, start a workspace on the main preview env and use its ID as
$WORKSPACE_ID
Release Notes
Documentation
NONE
/uncc