I am using Google App Engine with Cloud Endpoints for a simple Android application. In the backend I have the following API method, deployed to GAE:
@ApiMethod(name = "getGroupInfo", path = "groups")
public GroupInfo getGroupInfo(@Named("session") String sessionString, @Named("groupID") String groupID)
throws ForbiddenException
{
Logger.getAnonymousLogger().warning("Session string is: " + sessionString);
Logger.getAnonymousLogger().warning("GroupID is: " + groupID); }
The problem is that when I call the method from the Android client, arguments are passed in reverse order to the method: the string I pass as the first argument in client is group ID in server backend, and the other way around.
Any help would be appreciated, thank you!
AS you can read here [1]:
[1] https://cloud.google.com/solutions/mobile/google-cloud-endpoints-for-android/