remyla / damas-core

JSON storage service. RESTful, CRUD, multi-user.
http://damas-software.org
GNU General Public License v3.0
56 stars 23 forks source link

/api/search_one : new method #98

Closed remyla closed 8 years ago

remyla commented 8 years ago

implement this new operation:

/api/search_one

this takes the same string argument as the search https://github.com/remyla/damas-core/wiki/API#apisearch

but instead of returning a list of matching node indexes it returns the first matching node found (full JSON node description not its index only)

this is useful to avoid sending the read query next when we expect only 1 node and when the network latency is a important issue.

request by @sebcourtois for 2Minutes/Zombillenium

remyla commented 8 years ago

it could be implemented like this: