jeudi 20 septembre 2018

passing different arrays parameters in pact

I have two api calls , with the only difference being in the array parameters :

// it is used for displaying whole list  
Query 1 : limit=25&parameter=[deleted=false] 

//it is used for displaying on basis of id
Query 2 : limit=25&parameter=[deleted=false,id=10005]    

I tried using term , also something like but it takes both the query as one

parameter: term({
generate: '[deleted=false]',
matcher: '[deleted=false]'}),

parameter: term({
generate:'[deleted=false,id=10005]',
matcher:'[deleted=false,id=10005]'}),

Also , i passed the exact query but it doesn't work

Any suggestions on how to do it ?

Aucun commentaire:

Enregistrer un commentaire