Skip to content

Missing features #110

@armorjones

Description

@armorjones

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:view we use the redoc-cli tool to generate a static html file in tmp and open that file.
  • In the case of swaggerhub api:get --output we 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions