I have created a simple Mock service in Postman and I can see that I get requests from my C# app. The problem is that do not know how the request really looks like from my C# app so instead I get a No matching requests (404) from postman. I see 2 possible solutions :
Postman ignores request matching and just returns the response specified but I havenĀ“t found how to do this?
Fetch the request from my C# app and use it as a expected request in postman. Postman do however not show the full request and I do not know how to get it any other way?
If you are not really interested in matching any patterns and you just want to retrieve to the example you defined, you can retrieve the response via its ID or name by passing x-mock-response-name or x-mock-response-id in your requestās headers
I got a collection that the mock is based on, in this collection I got a default post request and this have a default seponse. No aditional headers or anything have been added.
I have found how to add a DefaultRequestHeaders to my httpClient :
But iām not sure how this should be matched in postman mock service? I suspect that I need to add some kind of name\id to the post example. I tried adding x-mock-response-name : default here as well but that does not help.