Skip to content

icholy/oq

 
 

Repository files navigation

oq - a terminal-based OpenAPI Spec (OAS) viewer

oq preview

Usage

oq openapi.yaml
# or
cat openapi.yaml | oq
# or
curl https://api.example.com/openapi.json | oq

Keyboard Shortcuts

  • ↑/↓ or k/j - Navigate up/down through items
  • Tab - Switch between Endpoints and Components views
  • Enter or Space - Toggle fold/unfold for endpoint and component details
  • q or Ctrl+C - Quit the application

OpenAPI Support

oq supports both modern major OpenAPI specification versions:

  • OpenAPI 3.0.x
  • OpenAPI 3.1.x

Both JSON and YAML formats are supported.

Installation

go install github.com/plutov/oq@latest

From Source

git clone git@github.com:plutov/oq.git
cd oq
go build -o oq .

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

When contributing:

  1. Ensure tests pass: go test -v
  2. Test with both OpenAPI 3.0 and 3.1 examples

About

Terminal OpenAPI Spec viewer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%