@smartlyio/oats-mirage-adapter
v7.7.8
Published
Mirage.js adapter for Oats
Downloads
282
Maintainers
Readme
Oats Mirage Adapter
Typesafe Typescript OpenaApi3 support for Mirage.js mock http servers using Oats.
What is Oats?
Oats is a library that parses OpenAPI specifications and generates client and server definitions in TypeScript.
Installation
Use npm or yarn to install oats-mirage-adapter.
npm install oats-mirage-adapterUsage
Oats Mirage Adapter exports a single bind function that can be used to
bind the routes defined in an openapi spec to the mirage routes.
>>test-app/src/fake-server.tsFor a working example see test-app which contains a standard create-react-app using the generated mirage mock.
