I'm trying to mock an API like this,
GET users/:userID
Then create hard-coded (not templated or faked) responses using data buckets. My data bucket looks like this.
[
{
"{{urlParam 'userId'}}": "10000",
"firstname": "John",
"lastname": "Doe",
"friends": []
},
{
"{{urlParam 'userId'}}": "10001",
"firstname": "Archie",
"lastname": "Bunker",
"friends": []
}
]
Mockoon always returns the entire data bucket contents. Is there any way for me to match the urlParam to an item in my data bucket?
Not currently supported but this feature is being developed.
https://github.com/mockoon/mockoon/issues/124