kubernetes-sigs / kui

A hybrid command-line/UI development experience for cloud-native development
Apache License 2.0
2.84k stars 184 forks source link

Feature - plugin to make building http requests easier #4477

Closed showeimer closed 3 years ago

showeimer commented 4 years ago

@hanqiuzh and I were doing some work and were having to build curl commands to test some API behaviors. Sometimes it's hard to remember the syntax or flags needed to write curl commands or whatever http client tool you want to use. If KUI had a way to help build/make http requests like Postman can do and make those requests inside KUI, that might be a cool feature?

starpit commented 4 years ago

this sounds like a neat idea!

ujibang commented 4 years ago

@showeimer I just released HTTP Shell v0.0.1 that derives from Kui 9.0.0. and is:

A CLI tool that provides developers a modern alternative to http clients for interacting with APIs.

Find it at https://github.com/SoftInstigate/http-shell

@starpit interested on merging the plugin into kui? let me know...

starpit commented 4 years ago

hey, so sorry for the delay! we'll check it out. it sounds interesting.

myan9 commented 4 years ago

@ujibang Great! We are glad to merge http-shell into Kui. Please feel free to PR it. Recently, we've been enhancing Sidecar to be more terminal involved (you can find the proposal here: https://github.com/IBM/kui/issues/6007). We're going to try it out with http-shell. The get command result will then be shown inline, just like the set auth command. We will soon release a live version of this for feedback. We'll really appreciate it if you could give us some feedback on this.

starpit commented 4 years ago

The "inline sidecar" work currently has an open PR: #6008. In addition to the screenshots in the associated issue, we have published a read-only form for perusal to http://next.kui.tools; from there, you can browse some of the notebooks, or, better, you can link directly in to one of the kubernetes example notebooks: http://q.next.kui.tools/index.html?command=replay%20-c%20/kui/kubernetes/crud-operations.json

btw, this ability to host a read-only Kui as a static single-page web app, hosted in a plain object storage bucket is something you can also use. i think we're ready to publicize this avenue (it's just a plain build, using the plugin-client-notebook client, and copied to an s3 bucket). you could craft your own notebooks to help publicize your tool. we can chat about that separately.

Let us know what you think of the inline sidecar!

Screen Shot 2020-10-20 at 8 09 29 PM
ujibang commented 4 years ago

I went through the proposal #6007 about inline sidecars and also looked the screenshot in the PR https://github.com/SoftInstigate/http-shell/pull/1

Well, inline sidecars are definitely the way to go to show response data! This means that different responses will linearly be available in the shell, a great improvement.

The online notebooks are super cool! I will create a notebook and publish it for sure. Notebooks really make documenting some features of our product RESTHeart quite effective. Being RESTHeart an API server, sometimes it takes different steps requests to explain some use cases, and a notebook can definitely visualize the process very well!

fejta-bot commented 3 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale

fejta-bot commented 3 years ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten

fejta-bot commented 3 years ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community. /close

k8s-ci-robot commented 3 years ago

@fejta-bot: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/kui/issues/4477#issuecomment-846557410): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen`. >Mark the issue as fresh with `/remove-lifecycle rotten`. > >Send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.