docker-compose up -d
And then, access to http://localhost:8080/__admin/mappings
in your browser.
{
"mappings": [
{
"id": "a37c5ea0-5874-47c6-a3be-33f60eb68ced",
"request": {
"url": "/api/v1/hello",
"method": "GET"
},
"response": {
"status": 200,
"bodyFileName": "response.json",
"headers": {
"Content-Type": "application/json"
}
},
"uuid": "a37c5ea0-5874-47c6-a3be-33f60eb68ced"
}
],
"meta": {
"total": 1
}
}
And verify the response by sending a request to http://localhost:8080/api/v1/hello
.
{
"message": "Hello, WireMock from file!"
}
./wiremock
├── __files
│ └── response.json
├── extensions
│ └── wiremock-webhooks-extension-3.9.1.jar
└── mappings
└── mapping.json