https://github.com/nchern/red
Console User Interface(CUI) for HTTP API
https://github.com/nchern/red
api command-line cui debug http testing vim
Last synced: 7 months ago
JSON representation
Console User Interface(CUI) for HTTP API
- Host: GitHub
- URL: https://github.com/nchern/red
- Owner: nchern
- License: mit
- Created: 2017-04-12T22:56:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T12:02:56.000Z (over 5 years ago)
- Last Synced: 2023-04-02T13:28:46.881Z (over 2 years ago)
- Topics: api, command-line, cui, debug, http, testing, vim
- Language: Go
- Size: 732 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/nchern/red)
RED (Request EDitor)
==RED is a Console User Interface(CUI) that helps to make HTTP requests to different APIs from your favourite console text editor. You can think of it like a notebook for API requests.
Alpha version, tested with Vim only ;)
In the current version empty or JSON request body is supported.Install
===```go
go get github.com/nchern/red/...
```Usage
===```bash
red # Opens editor for editing requests in a query filered run # runs the query from a query file
red example # Outputs self-explainable query file body. You can get an idea about query file syntax from it
```Vim integration
===[Install plugin](vim/README.md)
You have now a family of `:Red*` commands feel free to explore them.
The main one is `:RedQuery` - runs the current file or a selected query as on screenshots belowScreenshots
====

Other editors support
===
Exists in theory, not tested. However, there are a couple of env variables to control an editor invocation:
* `EDITOR` - an editor command name, defaults to `vim`
* `EDITOR_FLAGS` - flags to pass to the editorThe utility calls then an editor with the following command line:
```bash
```Inspired by
===
* [Sense](https://chrome.google.com/webstore/detail/sense-beta/lhjgkmllcaadmopgmanpapmpjgmfcfig?hl=en)
* [Postman](https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en)