swaggergo

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 11 Imported by: 0

README

Swagger GO

This tiny commandline tool allows you to publish to SwaggerHub using environment variables or parameters with the SwaggerHub credentials and API path.

The purpose of this application is to simplify the process of publishing new definitions from deploy pipelines like Buldkite, CircleCI, Github Actions, Jenkins, etc.

How to use

From your pipeline you just need to have the latest release on the $PATH of the runner or agent.

Simple usage:
swaggergo path/to/openapi.yml --type yml --oas 3.0.0 --api mijailr/sample-api --access-token [...]
With environment variables:
export SWAGGERHUB_ACCESS_TOKEN="..."
export SWAGGERHUB_API="..."
swaggergo --file path/to/openapi.yml --type yml

Thanks to

This tiny command line tool is inspired on github-release from Buildkite.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL