tornado-utils / tornado-restless

Insprired on flask-restless and sqlalchemy api wrapping for tornado
42 stars 14 forks source link

Return only a single instance when the single search param is set #7

Closed sjhewitt closed 9 years ago

sjhewitt commented 10 years ago

According to the flask-restless docs, if you include "single": true in the search query, the API should only return a single object, not the full list response. This PR changes the library to have that functionality.

http://flask-restless.readthedocs.org/en/latest/searchformat.html#expecting-a-single-result

MartinMartimeo commented 9 years ago

Thx for the patch!