For applying filters while sending a query request from android through cloud endpoints, you need to add options to set parameters. I will explain with a short example
1, Assume your contactinfo endpoint has 2 properties
name = ndb.StringProperty()
contacttype = ndb.StringProperty() // assume this can have values personal or business
2, Now if you need to query for a particular contacttype, then your app engine code should have a query method that filters based on the property contacttype. Your endpoint should call this query method by passing on the input parameter from the user.
3, Now to send the required parameter from android , your class Listcontactinfo
where you would define the REST Path and method type, should include an option to the set the contacttype parameter
@com.google.api.client.util.Key
private String contacttype;
public String getContacttype() {
return contacttype;
}
public Listcontactinfo setContacttype(String contacttype) {
this.contacttype = contacttype;
return this;
}
4, Finally while calling the endpoint method from your android code, you should pass a value using the setContacttype, which will be something like:
String apples = endpoint.listContactInfo().setContacttype("personal").execute().toString();
This is for an example case where you want to query entities having contacttype with value "personal"