Last active
March 28, 2020 20:37
-
-
Save CristianLlanos/33cd5556ab00f07e1e5ec10912a1f830 to your computer and use it in GitHub Desktop.
Wiremock Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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