Probably a simple question on REST…
How do I pass the GET variables to the function in the below code
@GET
@Produces("application/json")
@Path("/loginresult.json/{userid}/{pwd}")
{
public List<SecurityBean> getAuthenticationResult(){
return authenticationAPI.getAuthenticationResult();
}
I wan’t to pass the userid and pwd coming in url to the getAuthenticationResult() function
Also How can I pass POST parameters ?
for GET use
@QueryParam,for POSt use @
FormParam,for Cookie use
@CookieParam.