openapi-stub-studio

command module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 1 Imported by: 0

README

install

go install github.com/m-shichida/openapi-stub-studio@latest

Docker image

docker pull ghcr.io/m-shichida/openapi-stub-studio:latest
docker run --rm -p 8080:8080 ghcr.io/m-shichida/openapi-stub-studio:latest --port 8080
docker run --rm -p 8080:8080 \
	-v "$PWD/api/examples:/data:ro" \
	ghcr.io/m-shichida/openapi-stub-studio:latest \
	--port 8080 --spec /data/openapi.3.1.0.yaml

Usage

Local development

go run . --port 8080 --spec api/examples/openapi.3.1.0.yaml

After build

openapi-stub-studio --port 8080 --spec api/examples/openapi.3.1.0.yaml

Open in browser: http://localhost:8080

Supports OpenAPI 3.1.x, 3.0.x, and Swagger 2.0.

Arguments

Argument Required Description
--port Optional Listen port (default: 8080)
--spec Optional OpenAPI file path (if omitted, you can load it later from the UI)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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