/prism

Turn any OpenAPI (f.k.a Swagger) file into an API server with mocking, transformations, validations, and more.

Primary LanguageShellMIT LicenseMIT

Prism API Server by Stoplight

Maintainability Test Coverage

Current Prism Version: 2.0.20

The perfect OpenAPI Specification (formerly known as Swagger) companion. Turn any OpenAPI Specification document into an API server with dynamic mocking, transformations, validations, and more.

Usage:
  prism [command]

Available Commands:
  conduct     Run scenarios to orchestrate and test web APIs
  help        Help about any command
  login       Login to Stoplight
  logout      Logout of Stoplight
  mock        Create a mock server given an OASv2 specification
  serve       Start a prism server instance
  update      Update prism to latest or specific version
  validate    Run a contract server, validating upstream responses match a OASv2 specification
  version     Print prism version

Flags:
  -h, --help           help for prism
  -t, --token string   Stoplight token for user account

Use "prism [command] --help" for more information about a command.

Supports OpenAPI Specification 2. OpenAPI Specification 3 coming soon.

More documentation

Installation

On OS X or Linux:

curl https://raw.githubusercontent.com/stoplightio/prism/2.x/install.sh | sh

With Docker

docker pull stoplight/prism

On Windows download binary.

Update

prism update