diff --git a/src/example.js b/src/example.js new file mode 100644 index 0000000..144118e --- /dev/null +++ b/src/example.js @@ -0,0 +1,15 @@ +const OpenApiMocker = require("open-api-mocker"); + +const main = async () => { + const openApiMocker = new OpenApiMocker({ + port: 5000, + schema: `${__dirname}/../tests/schema-examples/basic.yaml`, + watch: true, + }); + + await openApiMocker.validate(); + + await openApiMocker.mock(); +}; + +main();