Restman
is a command-line tool for interacting with RESTful APIs, featuring a TUI (Text-based User Interface). It's designed for developers who prefer to work within the terminal environment, offering a convenient and efficient way to test and debug APIs.
Note
Restman is currently in active development and is not yet ready for production use.
Restman can be installed in several ways, including using pre-built packages from the releases, Go's package manager, or by building from source.
You can download the pre-built packages for Restman from the Releases page on the GitHub repository. Choose the appropriate package for your operating system and architecture.
For example, to download and install Restman on a Unix-like system, you can use the following commands (replace VERSION
with the actual version you want to install):
curl -Ls https://api.github.com/repos/jackMort/Restman/releases/latest \
| grep -wo "https.*Linux_x86_64.tar.gz" \
| wget -qi - \
&& tar -xvf restman*.tar.gz restman \
&& chmod +x ./restman \
&& sudo mv restman /usr/local/bin/
Make sure to add the executable to your PATH if it's not already included.
Alternatively, you can clone the repository and build from source:
git clone https://github.com/jackMort/Restman.git
cd Restman
go build
After building, you can run ./restman
to start the application.
After installation, you can verify that Restman is installed correctly by running:
restman --version
This should output the version of Restman that you have installed.
Note
Make sure to replace VERSION
with the actual version number and adjust the download URL and file names according to your project's release structure. The instructions should be clear and easy to follow for users who prefer to use pre-built binaries rather than building from source.
To start using Restman, navigate to your project directory and run:
restman
You can also pass in an initial URL to work with:
restman http://example.com/api
For a list of commands and options, use the help command:
restman --help
Once Restman is running, you'll be greeted with the TUI where you can configure your requests and view responses. The interface is designed to be intuitive and easy to navigate. Below is a preview of the TUI with the available keyboard shortcuts:
- Intuitive Text-based User Interface (TUI)
- Support for various HTTP methods (GET, POST, PUT, DELETE, etc.)
- Ability to save and reuse requests
- Custom headers and body content
- Response highlighting for easy reading
- SSL/TLS support
Restman can be configured using a .restmanrc
file in your home directory. Here's an example configuration:
{
"default_headers": {
"Content-Type": "application/json",
"User-Agent": "Restman/1.0"
}
}
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or fix.
- Write your code.
- Add or update tests as necessary.
- Ensure your code passes all tests.
- Submit a pull request against the main branch. Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Restman is released under the GPL-3.0 License. See the bundled LICENSE file for details.