title: Implementing RESTful web service with two parameters?
body: <p>I am writing Jersey RESTful web services. I have below two web methods.</p>
  
  <pre><code>@Path("/persons")
  public class PersonWS {
      private final static Logger logger = LoggerFactory.getLogger(PersonWS.class);
  
      @Autowired
      private PersonService personService;
  
      @GET
      @Path("/{id}")
      @Produces({MediaType.APPLICATION_XML})
      public Person fetchPerson(@PathParam("id") Integer id) {
          return personService.fetchPerson(id);
      }
  
  
  }
  </code></pre>
  
  <p>Now i need to write one more web method which takes two parameters one is id and one more is name. It should be as below.</p>
  
  <pre><code>public Person fetchPerson(String id, String name){
  
  }
  </code></pre>
  
  <p>How can i write a web method for above method?</p>
  
  <p>Thanks!</p>