Hello everyone, I could use some help - I have som...
# help
j
Hello everyone, I could use some help - I have some already existing stubs in JSON files but with no matching logic. I need to add such logic to proceed further as our application gets more difficult. My only possibility is to match based on request body. For that I have gone trough the official documentation but I don't find that enough descriptive enough. My questions are as follows: 1. is bodyPatterns only way to get request body? Why cant I just write
"request": {"body":{"element"{"matches" : "value"}}}
2. where can I find list of all possible keywords/commands that I can use in JSON stub? 3. are there any tutorials on how to use JsonPath? (need proper syntax)
a
1. The field for matching on the body is
bodyPatterns
. 2. The request matching documentation is probably the most complete Is there something in particular youโ€™re struggling with?
โœ… 1
t
Thanks @Aaron you just beat me to it ๐Ÿ™‚
a
๐Ÿ”ซ ๐Ÿค  ๐Ÿ”ซ fastest response in the west
๐Ÿ˜ 1
j
ok, thank you. I managed to find some documentation on JsonPath as well from other sources.