GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - apigrok/apigrok-cli: A powerful CLI tool built with Rust for exploring, testing, and understanding APIs.

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 

Repository files navigation

APIGrok CLI - API Explorer

License: MIT Build Status Crates.io

A powerful CLI tool built with Rust for exploring, testing, and understanding APIs. APIGrok CLI helps developers quickly interact with any APIs and comprehend their structure.

Features ✨

  • Interactive API exploration with TUI interface
  • HTTP methods support: GET, POST, PUT, DELETE, PATCH
  • Authentication helpers for OAuth, JWT, Basic Auth
  • Response visualization with syntax highlighting
  • Request history and collections
  • Environment variables support
  • Code generation for multiple languages
  • OpenAPI/Swagger integration

Installation πŸ› οΈ

From Cargo (Recommended)

cargo install apigrok-cli

From Source

git clone https://github.com/apigrok/apigrok-cli.git
cd apigrok-cli
cargo install --path .

Quick Start πŸš€

# Make a GET request
apigrok fetch https://api.example.com/users

Usage πŸ“–

Basic Commands

apigrok [METHOD] URL [OPTIONS]
METHOD: get, post, put, delete, patch (default: get)

Options

Option Description
-d, --data Request body data
-H, --header Add custom header
-q, --query Add query parameters
-e, --env Use environment file
-o, --output Output format (json, yaml, table)
--save Save request to collection
--docs Generate API documentation

Interactive Mode

Launch the terminal user interface:

apigrok -i

Examples πŸ§ͺ

# GET request with query parameters
apigrok fetch "https://api.example.com/search?q=rust"

# POST with JSON body and headers
apigrok post https://api.example.com/auth \
  -d '{"username": "user", "password": "pass"}' \
  -H "Content-Type: application/json"

# Generate TypeScript interface from response
apigrok get https://api.example.com/users/1 --output ts-interface

Configuration βš™οΈ

Create a ~/.apigrok/config.toml file for persistent settings:

toml
Copy
[default]
output = "json"
theme = "dark"

[auth.prod]
type = "bearer"
token = "your_token_here"

[env.prod]
base_url = "https://api.example.com/v1"

Contributing 🀝

We welcome contributions! Please read our Contributing Guidelines for details.

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/AmazingFeature)

  3. Commit your changes (git commit -m 'Add some AmazingFeature')

  4. Push to the branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request

Development Setup

Quick Start for Contributors

git clone https://github.com/apigrok/apigrok-cli.git
cd apigrok-cli
cargo build
cargo test

Project Structure

src/
β”œβ”€β”€ main.rs          # CLI entry point
β”œβ”€β”€ commands/        # Command implementations
β”œβ”€β”€ protocols/       # Protocol implementations
β”œβ”€β”€ utils/           # Helper functions
└── config/          # Configuration handling

Roadmap πŸ—ΊοΈ

  • Basic HTTP client functionality
  • Interactive TUI mode
  • WebSocket support
  • GraphQL query builder
  • Plugin system for extensions

License πŸ“œ

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments πŸ™

  • Inspired by tools like Postman, httpie, and curl
  • Built with amazing Rust crates: reqwest, clap, serde, tui-rs

About

A powerful CLI tool built with Rust for exploring, testing, and understanding APIs.

apigrok.io

Topics

apiapigrokapigrokkinggrokgrokking

Resources

Readme

Contributing

Contributing
Activity
Custom properties

Stars

2 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.