Hi!
I am new in the raml world and when using queryParameters, i am not sure what i should expect to happen in the notebook tool.
This is my notebook code:
API.createClient(‘client’, ‘/…some link…/’);
client.licenses.get({type: “illness”})
The response to this is an array WITH ALL THE LICENSES, it does not filter only the “illness” ones as I would expect. I know that filtering for real a json is not something that I should expect… but looking into the Twitter example (https://api-notebook.anypoint.mulesoft.com/examples/twitter), it does it for real… so I am a little bit confused.
This is my code:
/licenses:
get:
description: get licenses
queryParameters:
type:
displayName: type
type: string
description: License type
example: 'illness’
responses:
200:
body:
application/json:
example: |
[
{“type”: “study”,
"creation_date": "2015-10-02"
},
{“type”: “illness”,
"creation_date": "2015-09-29"
}
]
Thanks in advance