WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
Apache License 2.0
1.39k
stars
207
forks
source link
How to access the request's body params comming from PostMan body ? #936
the params can be inside the post URL as well
the response should be as :{ result = "OK", description = "Request accepted", requestCode = "{{ request.bodyAsJson.requestCode}}" }
which thi case should be
{ result = "OK", description = "Request accepted", requestCode = "ABC" }
Hello .
The complete question is : How to access the request's body params comming from PostMan? and put them inside the responce using templates {{ }} ?
The request body should be this :
{ result = "OK", description = "Request accepted", requestCode = "{{ request.bodyAsJson.requestCode}}" }
which thi case should be
{ result = "OK", description = "Request accepted", requestCode = "ABC" }