My personal REST API consuming software written in Go. Teargas is a powerful yet lightweight tool designed for testing and consuming REST APIs with ease. With built-in JWT support, it's versatile and perfect for modern web development.
- Simple & intuitive CLI interface.
- JWT Authentication support.
- Simple response statistics for quick evaluations.
- Binary is NOT small.
- Normally compiled binary size is ~7.3MB (Yes, fuck static binaries)
- Stripped binary is ~5.0MB (Yep...)
This software name and thumbnail don't intend to infringe copyright laws by illegally copying or claiming content that isn't mine. This is made solely as a tribute to the artists/bands I like, the original idea + artwork concept and registered trademarks are property of said artist and their registered trademark holders. ๐ซ๐ฎโโ๏ธ๐๐ผ
Source inspiration taken from: Teargas - Katatonia. ๐ต๐ค๐ง
- Go 1.16 or higher ๐
- A simple REST API to consume ๐
Download the latest version from the releases page
or
- Clone the repo
git clone https://github.com/VentGrey/teargas.git
- Build the binary
cd teargas
# Build a normally compiled binary
go build -o teargas teargas.go
# Build a "stripped" binary
go build -o teargas -ldflags="-s -w" teargas.go
- Run the program
./teargas -url <URL> -output [output file]
- (Optionally build a Debian Package)
Since
dh-make-golang
is walking crap. The method for building a Debian Package here is similar to the one used in Linux Mint.
Basic usage:
teargas -url <URL> -output [output file]
Make a request using JWT authentication:
teargas -url <URL> -output [output file] -username <USERNAME> -password <YOURPASSWORD> -authurl <AUTH_URL>
Contributions are always welcome! ๐ค...however I think this doesn't need much tho. Feel free to propose any changes you'd like :)
Please report any bugs to omar@laesquinagris.com ๐ง๐
Distributed under the GPL-2+ License. See LICENSE for more information. ๐๐
- GitHub Actions ๐ค๐
- JSON-iterator for Go MIT licensed. ๐๐