I have written a web service using a RESTful approach and I have more than one method which accept POST requests, like:
@Path("/user")
class User{
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public UserMasterDto getUserDetails(MultivaluedMap<String, String> userParams) {
// other stuff..
}
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces(MediaType.APPLICATION_JSON)
public UserMasterDto getUserDetails2(MultivaluedMap<String, String> userParams){
// other stuff..
}
}
I want to call a specific method, say getUserDetails2
, from an Android application.
What do I need to do?