Skip to content

Repository files navigation

REST Mocker

CLI tool that turns OpenAPI specs into a running mock REST server.

Install

npm install -g @nazariazargul/rest-mocker

Usage

rest-mock --path ./api.yaml --port 3000
rest-mock --path ./specs
Option Default Description
--path <path> ./openapi.yaml OpenAPI file or folder
-p, --port <port> 3000 Server port

Swagger UI is available at /api-docs.

License

MIT

About

Simulates any OpenAPI spec on the fly

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages