Skip to content

Instantly share code, notes, and snippets.

@CristianLlanos
Last active March 28, 2020 20:37
Show Gist options
  • Save CristianLlanos/33cd5556ab00f07e1e5ec10912a1f830 to your computer and use it in GitHub Desktop.
Save CristianLlanos/33cd5556ab00f07e1e5ec10912a1f830 to your computer and use it in GitHub Desktop.
Wiremock Configuration
# Iniciar Wiremock
docker run -d --name wiremock \
-p 9031:8080 \
-v $PWD/wiremock:/home/wiremock \
-u (id -u):(id -g) \
rodolpheche/wiremock \
--record-mappings --verbose
# Create $PWD/wiremock folder and use the example structure to append mappings
# https://github.com/rodolpheche/wiremock-docker/tree/master/samples/hello/stubs
# Donde pueden ver los mocks registrados
http://localhost:9031/__admin/
# Acceso al Swagger UI
http://localhost:9031/__admin/swagger-ui/
# Cargar nuevos mappings Wiremock
curl --request POST -I --url http://localhost:9031/__admin/mappings/reset
# Apagar Wiremock
docker rm -f wiremock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment