/openprism

Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Introduction

This is a fork of prism.

Setup

yarn build --clean

build docker image

cd ${rootPath}
docker image -t <image-name> .

start image

docker run --init -p 4010:4010 openprism:demo mock -h 0.0.0.0 /tmp/specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/storage.json

or

docker run --init -p 4010:4010 openprism:demo mock -h 0.0.0.0 https://raw.githubusercontent.com/1openwindow/openprism/master/examples/petstore.oas2.yaml

in dev env, you may need to set the following parameter in env.

NODE_TLS_REJECT_UNAUTHORIZED = 0

🎉 Thanks

Prism is built on top of lots of excellent packages, and here are a few we'd like to say a special thanks to.