node-ultimate icon indicating copy to clipboard operation
node-ultimate copied to clipboard

Basic query operators should be allowed

Open cedricziel opened this issue 11 years ago • 2 comments

For example

GET /api/myResource?limit=2&start=150&conditions={"name": {$regex: "foo"}} # where this of course is a encoded JSON object

Should be supported.

Well; quite obvious that this would be a huge step. Over at the seed project @pilwon mentioned that baucis is about to be (at least) looked at. baucis does in fact generate exactly those routes with the mentioned capabilities.

Not to be over enthusiastic, but wouldnt it be great if one could integrate it that way? Custom controllers somehow destroy the whole restify idea :/

cedricziel avatar Nov 13 '13 15:11 cedricziel

@cedricziel That's the path we looked into at first because we thought it provided great features but later we realized we didn't like some of it and it would be much cleaner if we implement our own module that perfectly fits ultimate-seed.

pilwon avatar Nov 14 '13 16:11 pilwon

Related issues: https://github.com/pilwon/node-ultimate/pull/8, https://github.com/pilwon/node-ultimate/pull/13, https://github.com/pilwon/ultimate-seed/issues/42

pilwon avatar Nov 14 '13 16:11 pilwon