A mock tool to mock multiple APIs with OAS definitions
npx openapi-multimock [-p <PORT>] <path>:<definition> [<path>:<definition>]
Example:
$ npx openapi-multimock /petstore:https://petstore3.swagger.io/api/v3/openapi.json /user:https://docs.api.epilot.io/user.yaml
api mock listening at http://localhost:5050/petstore
api mock listening at http://localhost:5050/user
docker run -p 5050 -e APIS=<path>:<definition>,[<path>:<definition>] openapi-multimock
version: "3.5"
services:
openapi-multimock:
image: openapi-multimock:latest
environment:
APIS: /entity:https://docs.api.epilot.io/entity.yaml,/internal-auth:https://docs.api.epilot.io/internal-auth.yaml
ports:
- 5050