Docker container with a swagger-editor and swagger-express-middleware mashup.
-
Install the pmovil/docker-swagger-ide container:
$ docker pull pmovil/docker-swagger-ide
-
Run docker-swagger-ide with a shared specs folder and port:
$ docker run -v $(pwd):/app/specs -p 8080:8080 --rm pmovil/docker-swagger-ide
-
A minimal swagger.yaml file will be avaiable at your execution folder, and mocked at http://127.0.0.1:8080/users
-
Edit your swagger definition. Mocking will be avaiable at http://127.0.0.1:8080/, just follow mock middleware docs to customize it.