Is there a way to return custom responses for the rest calls making to App1,App2 from my app? I noticed that wiremock only works for the rest calls with localhost domain.
Please confirm.
Thanks,
Muhil
Tom Akehurst
unread,
Mar 9, 2017, 4:11:01 AM3/9/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wiremock-user
WireMock doesn't have to be run on localhost. You can start it in standalone mode and run it on a server other than where your app under test is running.
Then you have two options: 1) start WireMock with --enable-browser-playing and set your app's proxy to point to it, or 2) configure the host and port for the API you are mocking in your app to point to where WireMock is running