Muhammed Moussa
09/26/2023, 8:36 AM{{now}}
) using docker
image not jar
https://wiremock-community.slack.com/archives/C053Y3N34C8/p1695649886746049Oleg Nenashev
09/26/2023, 9:04 AMMuhammed Moussa
09/26/2023, 9:28 AMOleg Nenashev
09/26/2023, 9:32 AMMuhammed Moussa
09/26/2023, 9:36 AM{
"name": "dates-demo",
"request": {
"url": "/dates-demo",
"method": "GET"
},
"response": {
"status": 200,
"transformers": [
"response-template"
],
"jsonBody": {
"id": "{{randomInt}}",
"name": "dates-demo",
"creationDate": "{{now}}"
}
}
}
response:
{
"id": "{{randomInt}}",
"name": "dates-demo",
"creationDate": "{{now}}"
}
Oleg Nenashev
09/26/2023, 9:39 AMMuhammed Moussa
09/26/2023, 9:43 AMid
to be an actual random number e.g.: 1, 2, 3.. and the same for the creationDate
to be something like: 023-09-26T09:42:44.727Z
not {{randomInt}} {{now}}
Lee Turner
09/26/2023, 9:52 AM{
"id": "-1752793986",
"name": "dates-demo",
"creationDate": "2023-09-26T09:52:22Z"
}
port: 7777
enable-browser-proxying: false
disable-banner: false
no-request-journal: false
verbose: true
extensions: response-template,webhook
Muhammed Moussa
09/26/2023, 9:56 AMport: 8080
enable-browser-proxying: false
disable-banner: false
no-request-journal: false
verbose: false
I see verbose as the only difference and extensions
as wellLee Turner
09/26/2023, 9:57 AMMuhammed Moussa
09/26/2023, 9:57 AMservices:
wiremock-server:
image: wiremock/wiremock:latest
ports:
- 3030:8080
volumes:
- ./wiremock:/home/wiremock
Lee Turner
09/26/2023, 10:01 AM--global-response-templating
in the entrypoint
as shown at the bottom of this page - https://wiremock.org/docs/standalone/docker/Muhammed Moussa
09/26/2023, 10:18 AMdocker-entrypoint.sh
is that okay or I need to include?Lee Turner
09/26/2023, 10:26 AM