8000 GitHub - rishiUT/open-cli: Generate client based on OpenAPI Specification and wrap it in a command line interface.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from sharbov/open-cli

Generate client based on OpenAPI Specification and wrap it in a command line interface.

License

Notifications You must be signed in to change notification settings

rishiUT/open-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCLI

A CLI for every service which exposes a OpenAPI (Swagger) specification endpoint.

From the OpenAPI Specification project:

The goal of The OpenAPI Specification is to define a standard, language-agnostic interface to REST APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection.

Demo

Alt Text

Docker

To start a CLI session run:

docker run -it sharbov/open-cli <swagger-spec-url>

e.g:

docker run -it sharbov/open-cli http://petstore.swagger.io/v2/swagger.json

Python

Installation

To install OpenCLI, simply:

pip install opencli

Usage

To start a CLI session run:

open-cli <swagger-spec-url>

e.g:

open-cli http://petstore.swagger.io/v2/swagger.json

For more options run:

open-cli -h

Credits

This project relies on Yelps bravado project & on Jonathan Slenders python-prompt-toolkit.

About

Generate client based on OpenAPI Specification and wrap it in a command line interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 89.7%
  • Dockerfile 6.7%
  • Makefile 3.6%
0