Update rest-api.rst

Adding info about using comparison operators for querying resources.