added query docs for REST