mirage-openapi
WARNING: This is a work in progress and is not yet meant for real-world use. Please feel free to file an issue or open a pull request if you come across any bugs.
mirage-openapi is a plugin for ember-cli-mirage that consumes openAPI/swagger documentation and mocks endpoints at runtime.
Install
$ npm install --dev mirage-openapi
You'll also need to install ember-browserify
and ember-cli-mirage
if not already present:
$ ember install ember-browserify ember-cli-mirage
Usage Examples
Consume swagger schema:
// ./mirage/config.js ; { ;}
Override routes defined in swagger schema:
// ./mirage/config.js ; { // Custom handler for /pet/:id route this; ;}