Beispiel #1
0
 @PUT
 @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
 public void add(@FormParam("name") String name, @FormParam("description") String description) {
   Genre newGenre = new Genre();
   newGenre.setName(name);
   newGenre.setDescription(description);
   genreManager.add(newGenre);
 }