This message was deleted.
# wiremock-java
s
This message was deleted.
t
Can you share a bit more detail @Kaustav Surai? It sounds like you’re using templating, but I couldn’t be sure from your description - can you give the details of the config you’re starting WireMock with and the input + expected/actual output you’re getting?
k
Hi @Tom, Thanks for your message. Sending sample response
Copy code
{
  "uiElements": [
    {
      "type": "PLAIN_TEXT",
      "text": "Hello"
    },
    {
      "type": "HTML",
      "html": "<a class=\"link\" href={{DOWNLOAD_LINK}}> Download</a>"
    }
  ]
}
I am expecting {{DOWNLOAD_LINK}} to be replaced from the ui code but getting empty href however it is working fine from actual service.
Config is here
Copy code
version: '3.9'
networks:
  test:
services: 
  mock-server:
    build:
      dockerfile: Dockerfile
      context: .
    expose:
      - 8080
    ports:
      - "8080:8080"
    command:
      - -verbose
      - -global-response-templating
    networks: 
      test: