Need help on dynamic call in query parameter in RAML.
In RAML, I want to call .raml files which are in Examples folder dynamically. Through query param, if I send ?count=2 (example: https://anypointpoint.mulesoft.com/mocking/api?count=2) then 2_records.raml file to execute in response which is in Examples folder... If I send ?count=3 then 3_records.raml file to execute in response which is in Examples folder.
api specification as below to understand clearly :
/retrieveDetails get: queryParameters: count: #if query param ?count=2(in mock url) then 2_records.raml to execute. If query param ?count=3 (in mock url) then 3_records.raml to execute. enter image description here type: string responses: 200: body: application/json example: !include Examples/2_records.raml
And attached screenshot as well to understand easily.