1openwindow / openprism

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

Home Page:https://stoplight.io/open-source/prism

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://stoplight.io/open-source/prism

License:Apache License 2.0


Languages

Language:TypeScript 98.7%Language:Dockerfile 0.6%Language:JavaScript 0.5%Language:Shell 0.2%