-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Context:
We've engineered a similar Swaggerhub CLI tool internally to our company and have included several major features which are not seen in the official SmartBear release. List all APIs in given org, view a spec locally (we use ReDoc), and list/view versions of a spec to name some of the major features. Other features include saving the spec as either json or yaml and by a given filename to a specified location.
The ask:
We'd be happy to sunset our tool in favor of this release for various reasons. But we'd like to see listing specs, listing and viewing versions.
swaggerhub api:list OWNER
swaggerhub api:versions API_NAME
swaggerhub api:get OWNER/API_NAME/[VERSION] --output <output_filename>.<json|yml|yaml>
swaggerhub api:view OWNER/API_NAME/[VERSION]
- In the case of
swaggerhub api:viewwe use theredoc-clitool to generate a static html file in tmp andopenthat file. - In the case of
swaggerhub api:get --outputwe could get creative on implementation, right now we let the user to define directory, version, format and filename, --dir, --version, --format and --filename respectively. But I could see using just --output to do something like--output /path/to/file.yaml --version 1.3.5
When you begin accepting PRs I'd be happy to contribute some of these ideas for your review. Unless of course you'd like to tackle some/all of these? :)
Metadata
Metadata
Assignees
Labels
No labels