sideshowcoder / canned

Server to respond with fake API responses, by using a directory of files for finding out what to say!
213 stars 46 forks source link

Get different response thank to params in json files doesn't works #73

Closed xdemocle closed 8 years ago

xdemocle commented 8 years ago

I set my json file for multiple responses like below

//! params: {"limit": 40, "offset": 0}
{
  "name": "value1"
}

//! params: {"limit": 40, "offset": 40}
{
  "name": "value2"
}

But canned continue to deliver only the first response, despite I use a different query_list. Any idea?

sideshowcoder commented 8 years ago

Just edited a comment for more readablilty... I'm trying it out.

sideshowcoder commented 8 years ago

yes this is a bug I just tried it and it seems to ignore the 2. param if the first matches. I created a test for it to work towards fixing if you want to look into it feel free :)

xdemocle commented 8 years ago

cool, thanks. is a good tool for mockup data. Congrats

xdemocle commented 8 years ago

I'm working on it... cause I really need it :dancer:

sideshowcoder commented 8 years ago

awesome :+1:

xdemocle commented 8 years ago

FYI, the canned npm package is still the 0.3.4v

sideshowcoder commented 8 years ago

Oh shot ... I know there was something I missed sorry about that...

sideshowcoder commented 8 years ago

It's up now, thanks for the reminder :+1:

xdemocle commented 8 years ago

ehhehe cool :) thank you

git-jiby-me commented 8 years ago

@sideshowcoder , @xdemocle I think this have been fixed, but not closed ?

xdemocle commented 8 years ago

yep... exactly. thanks to close it :dancer: