title: Spring Restful services GET and POST methods
body: <p>Probably a simple question on REST...</p>
  
  <p>How do I pass the GET variables to the function in the below code</p>
  
  <pre><code>@GET
  @Produces("application/json")
  @Path("/loginresult.json/{userid}/{pwd}")
  {
  public List&lt;SecurityBean&gt; getAuthenticationResult(){
      return authenticationAPI.getAuthenticationResult();
  }
  </code></pre>
  
  <p>I wan't to pass the userid and pwd coming in url to the getAuthenticationResult() function</p>
  
  <p>Also How can I pass POST parameters ?</p>