Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

v1.6.0

Latest
Compare
Choose a tag to compare
@255kb 255kb released this 01 Mar 20:04
· 1 commit to main since this release

This release adds support for Mockoon v1.18.0.

OpenAPI support

The CLI is now compatible with OpenAPI specification files v2.0.0 and 3.0.0 (both JSON and YAML). To directly mock an OpenAPI specification file, simply run the start command by providing the URL or a local path to a specification file:

$ mockoon-cli start --data ~/path/to/your-opeanapi-file.yaml

(Issue #18)

Run multiple mocks at once

Running multiple mocks at once is now possible by providing multiple paths or URLs to the --data flag. This is compatible with both managed processes and foreground processes. --data, --pname, --port and --hostname flags can receive multiple values to run and configure multiple mocks:

mockoon-cli start --data ./mock1.json ./mock2.json --port 3000 3001 --pname mock1 mock2 --hostname 127.0.0.1 192.168.1.1

The dockerize command now also supports copying multiple mocks and exposing multiple ports.

(Issue #57)

Legacy exports deprecation and removal

Since legacy Mockoon's export format was removed in the application's latest version, --all, --index and --name flags were removed from the CLI. Though, the CLI is still able to run mocks from an old export file.
Running multiple mocks can now be achieved thanks to the above method.