Support Mock Matching using Post Body #1721
-
ScopeImproves an existing behavior Compatibility
Feature descriptionIt's great we can mock a REST endpoint with It would be really nice if |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, @hecktarzuli. Please take a look at a similar question about matching against request query parameters: #1315 (comment). The approach to implementing the match against the request body will be quite the same (here's a more relevant comment on the topic #1315 (comment)). MSW provides a versatile API for you to implement such a helper utility and use across your request handlers. This is not something we will ship out of the box. |
Beta Was this translation helpful? Give feedback.
Hi, @hecktarzuli.
Please take a look at a similar question about matching against request query parameters: #1315 (comment). The approach to implementing the match against the request body will be quite the same (here's a more relevant comment on the topic #1315 (comment)).
MSW provides a versatile API for you to implement such a helper utility and use across your request handlers. This is not something we will ship out of the box.