/** * Method user to get from the person service the person that has the id offered as parameter. * * @param id the id of the person that will be returned from the database * @return person object with the id offered as parameter */ @GET @Path("/select") public Person getPerson(@QueryParam("id") int id) { return personService.get(id); }