Update rest-api.rst

Adding info about using comparison operators for querying resources.
Merge pull request #67 from grotiiy/patch-4

Update rest-api.rst