1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
@PUT
@Path("/carte")
@Produces("application/json; charset=UTF-8")
@PermitAll
public List<Carte> setAllCarte(@FormParam ("nom") String nom , @FormParam("prenom") String prenom , @FormParam("date") Integer date ,
@FormParam("compte") Integer compte);
public List<Carte> setAllCarte(String nom, String prenom, Integer date,
Integer compte) {
Carte list = new Carte();
list.setNom(nom);
list.setPrenom(prenom);
list.setDate(date);
list.setCompte(compte);
return setAllCarte(nom, prenom, date, compte);
} |
Partager