1.1.1 • Published 2 years ago

openapi-multimock v1.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

OpenAPI Multimock

CI npm version License

A mock tool to mock multiple APIs with OAS definitions

Usage

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 Usage

docker run -p 5050 -e APIS=<path>:<definition>,[<path>:<definition>] openapi-multimock

Docker-Compose Usage

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
1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago