Skip to content

Pmovil/docker-swagger-ide

Repository files navigation

Swagger editor + mock in a Docker.

Docker container with a swagger-editor and swagger-express-middleware mashup.

Installation / Usage

  1. Install the pmovil/docker-swagger-ide container:

    $ docker pull pmovil/docker-swagger-ide
  2. 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
  3. Go to http://127.0.0.1:8080/editor

  4. A minimal swagger.yaml file will be avaiable at your execution folder, and mocked at http://127.0.0.1:8080/users

  5. Edit your swagger definition. Mocking will be avaiable at http://127.0.0.1:8080/, just follow mock middleware docs to customize it.

About

Swagger editor + mock in a Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published