Forum Discussion

osalonga's avatar
osalonga
Occasional Contributor
7 years ago
Solved

Mock set up dispatch script when search criteria is a Form parameter

I have a mock service "GET /item/{id}" (ex: "/item/12345" to get item with id = 12345).  I need to send response 200 or 404 depending on the id on the request.  Using dispatch parameter, ID can't be identified by query nor path.  Using dispatch script, mockRequest methods to get request data are returning NULL value.  

 

Please help.

  • nmrao's avatar
    nmrao
    7 years ago
    Oh glad to know. You mark the help answer as - "Accept as Solution"

4 Replies