swagger-filter

command module
v0.0.0-...-9af5259 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

swagger-filter

swagger-filter is a CLI that gets a swagger file as input and filters the endpoints of the API definition depending on the flags passed to the command, then outputs the filtered definition in a new file. Definitions non used in the selected endpoints are also removed from the definition.

Usage

swagger-filter \
    --endpoint "/v1/pods" \
    --endpoint-prefix "/v1/" \
    --endpoint-regexp "/v1/.*" \
    input.json output.json

k8s-apis.sh

k8s-apis.sh filters the Kubernetes API definition in swagger.json and outputs a swagger definition for each API Group in the output directory.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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