https://linen.dev logo
#help
Title
# help
j

Jakub S

01/05/2024, 11:12 AM
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

Aaron

01/08/2024, 2:37 PM
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

Tom

01/08/2024, 2:38 PM
Thanks @Aaron you just beat me to it ๐Ÿ™‚
a

Aaron

01/08/2024, 2:38 PM
๐Ÿ”ซ ๐Ÿค  ๐Ÿ”ซ fastest response in the west
๐Ÿ˜ 1
j

Jakub S

01/11/2024, 2:44 PM
ok, thank you. I managed to find some documentation on JsonPath as well from other sources.