From 790d94b46e1726c5ca5bd5b3647ccafee622f029 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 29 Jan 2017 12:06:37 +0100 Subject: [PATCH] Base de données, enfin ! --- api.raml | 11 +++++++++-- etunicorn-server.iml | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------ pom.xml | 12 +++++++++--- src/main/java/etunicorn/Personne.java | 25 +++++++++++++++++-------- src/main/java/etunicorn/PersonneController.java | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- src/main/java/etunicorn/PersonneRepository.java | 14 ++++++++++++++ src/main/java/etunicorn/generated/ConsomationController.java | 43 ++++++++++++++++++++++++++----------------- src/main/java/etunicorn/generated/EvenementController.java | 51 ++++++++++++++++++++++++++++++--------------------- src/main/java/etunicorn/generated/LoginController.java | 21 ++++++++++++++------- src/main/java/etunicorn/generated/ParticipeController.java | 19 +++++++++++-------- src/main/java/etunicorn/generated/PersonneController.java | 60 +++++++++++++++++++++++++++++++++++------------------------- src/main/java/etunicorn/generated/RoleController.java | 37 ++++++++++++++++++++++++------------- src/main/java/etunicorn/generated/TransactionController.java | 60 +++++++++++++++++++++++++++++++++++------------------------- src/main/main.iml | 11 +++++++++++ 14 files changed, 343 insertions(+), 161 deletions(-) create mode 100644 src/main/java/etunicorn/PersonneRepository.java diff --git a/api.raml b/api.raml index 97aeaa2..01f5a23 100644 --- a/api.raml +++ b/api.raml @@ -95,13 +95,19 @@ securitySchemes: { "id": 42, "carte": "AAAAA", - "naissance": "1997-02-14", + "naissance": "855874800000", "solde": 1337, "login": "gbontoux", "role": "etudiant" } ] /{idPersonne}: + uriParameters: + idPersonne: + type: number + required: true + description: ID de la personne + minimum: 0 get: <<<<<<< HEAD securedBy: [oauth_2_0] @@ -118,7 +124,7 @@ securitySchemes: { "id": 42, "carte": "AAAAA", - "naissance": "1997-02-14", + "naissance": "855874800000", "solde": 1337, "login": "gbontoux", "role": "etudiant" @@ -143,6 +149,7 @@ securitySchemes: naissance: displayName: Date de naissance type: date + example: "14-Feb-1997" required: false example: 1997-02-14 login: diff --git a/etunicorn-server.iml b/etunicorn-server.iml index 9dea6ae..54ef4dd 100644 --- a/etunicorn-server.iml +++ b/etunicorn-server.iml @@ -9,51 +9,80 @@ - + - + - - + + + + - + + + + + + + + - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 341b02d..27dc2ba 100644 --- a/pom.xml +++ b/pom.xml @@ -16,17 +16,23 @@ org.springframework.boot - spring-boot-starter-web + spring-boot-starter-data-rest + + + org.springframework.boot + spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-test - test com.jayway.jsonpath json-path - test + + + com.h2database + h2 diff --git a/src/main/java/etunicorn/Personne.java b/src/main/java/etunicorn/Personne.java index c9989f8..ada8cd2 100644 --- a/src/main/java/etunicorn/Personne.java +++ b/src/main/java/etunicorn/Personne.java @@ -1,16 +1,25 @@ package etunicorn; -import java.sql.Date; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import java.util.Date; /** * Created by geoffrey on 28/01/17. */ +@Entity public class Personne { + + @Id + @GeneratedValue(strategy = GenerationType.AUTO) private int id; + private String carte; private Date naissance; private String login; - private Role role; + // private Role role; public Personne() { } @@ -47,11 +56,11 @@ public class Personne { this.login = login; } - public Role getRole() { - return role; - } + // public Role getRole() { + // return role; + // } - public void setRole(Role role) { - this.role = role; - } + // public void setRole(Role role) { + // this.role = role; + // } } diff --git a/src/main/java/etunicorn/PersonneController.java b/src/main/java/etunicorn/PersonneController.java index 7fae272..f4f41ae 100644 --- a/src/main/java/etunicorn/PersonneController.java +++ b/src/main/java/etunicorn/PersonneController.java @@ -1,11 +1,20 @@ package etunicorn; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; +import java.math.BigDecimal; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; import java.util.Date; +import java.util.List; +import java.util.Locale; /** * Created by geoffrey on 28/01/17. @@ -13,28 +22,66 @@ import java.util.Date; @RestController public class PersonneController implements etunicorn.generated.PersonneController { + @Autowired + private PersonneRepository personneRepository; + @Override public ResponseEntity getPersonne() { - return null; + return new ResponseEntity((List) this.personneRepository.findAll(), HttpStatus.OK); } @Override public ResponseEntity updatePersonne(@RequestParam(required = false) String carte, @RequestParam(required = false) Date naissance, @RequestParam(required = false) String login, @RequestParam(required = false, defaultValue = "etudiant") String role) { - return null; + Personne personne = new Personne(); + if (carte != null) { + personne.setCarte(carte); + } + if (naissance != null) { + personne.setNaissance(naissance); + } + if (login != null) { + personne.setLogin(login); + } + this.personneRepository.save(personne); + return new ResponseEntity(personne, HttpStatus.CREATED); } @Override - public ResponseEntity getPersonneById(@PathVariable String idPersonne) { - return null; + public ResponseEntity getPersonneById(@PathVariable BigDecimal idPersonne) { + Personne personne = personneRepository.findById(idPersonne.intValueExact()); + if (personne == null) { + return new ResponseEntity(HttpStatus.NOT_FOUND); + } + return new ResponseEntity(personne, HttpStatus.OK); } @Override - public ResponseEntity updatePersonneById(@PathVariable String idPersonne, @RequestParam(required = false) String carte, @RequestParam(required = false) Date naissance, @RequestParam(required = false) String login, @RequestParam(required = false) String role) { - return null; + public ResponseEntity updatePersonneById(@PathVariable BigDecimal idPersonne, @RequestParam(required = false) String carte, @RequestParam(required = false) Date naissance, @RequestParam(required = false) String login, @RequestParam(required = false) String role) { + Personne personne = personneRepository.findById(idPersonne.intValueExact()); + if (personne == null) { + return new ResponseEntity(HttpStatus.NOT_FOUND); + } + if (carte != null) { + personne.setCarte(carte); + } + if (naissance != null) { + personne.setNaissance(naissance); + } + if (login != null) { + personne.setLogin(login); + } + this.personneRepository.save(personne); + return new ResponseEntity(personne, HttpStatus.CREATED); } @Override - public ResponseEntity deletePersonneById(@PathVariable String idPersonne) { - return null; + public ResponseEntity deletePersonneById(@PathVariable BigDecimal idPersonne) { + Personne personne = personneRepository.findById(idPersonne.intValueExact()); + if (personne == null) { + return new ResponseEntity(HttpStatus.NOT_FOUND); + } + personneRepository.delete(personne); + return new ResponseEntity(personne, HttpStatus.NO_CONTENT); } + } diff --git a/src/main/java/etunicorn/PersonneRepository.java b/src/main/java/etunicorn/PersonneRepository.java new file mode 100644 index 0000000..8e55d61 --- /dev/null +++ b/src/main/java/etunicorn/PersonneRepository.java @@ -0,0 +1,14 @@ +package etunicorn; + +import org.springframework.data.repository.CrudRepository; + +import java.math.BigDecimal; +import java.util.List; + +/** + * Created by geoffrey on 29/01/17. + */ +public interface PersonneRepository extends CrudRepository { + Personne findByLogin(String login); + Personne findById(Integer id); +} diff --git a/src/main/java/etunicorn/generated/ConsomationController.java b/src/main/java/etunicorn/generated/ConsomationController.java index 8d12bba..f050a68 100644 --- a/src/main/java/etunicorn/generated/ConsomationController.java +++ b/src/main/java/etunicorn/generated/ConsomationController.java @@ -1,15 +1,19 @@ package etunicorn.generated; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; - import java.math.BigDecimal; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/consomation") @@ -18,46 +22,51 @@ public interface ConsomationController { /** * Obtenir la liste de toutes les consomations. Nécessite CONSO_ADMIN ou CONSO_ACHETER ou CONSO_REMBOURSER + * */ @RequestMapping(value = "", method = RequestMethod.GET) public ResponseEntity getConsomation(); /** * Permet de creer une nouvelle consomation. Nécessite CONSO_ADMIN + * */ @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity updateConsomation( - @RequestParam - String nomConsomation, - @RequestParam - BigDecimal prix); + @RequestParam + String nomConsomation, + @RequestParam + BigDecimal prix); /** * Permet de modifier une consommation. Nécessite CONSO_ADMIN + * */ @RequestMapping(value = "/{consomationId}", method = RequestMethod.PUT) public ResponseEntity updateConsomationById( - @PathVariable - String consomationId, - @RequestParam(required = false) - String nomEvenement, - @RequestParam(required = false) - BigDecimal prix); + @PathVariable + String consomationId, + @RequestParam(required = false) + String nomEvenement, + @RequestParam(required = false) + BigDecimal prix); /** * Obtenir la Consomation {consomationId}. Nécessite CONSO_ADMIN ou CONSO_ACHETER ou CONSO_REMBOURSER + * */ @RequestMapping(value = "/{consomationId}", method = RequestMethod.GET) public ResponseEntity getConsomationById( - @PathVariable - String consomationId); + @PathVariable + String consomationId); /** * Permet de supprimer la consomation {consomationId}. Nécessite CONSO_ADMIN + * */ @RequestMapping(value = "/{consomationId}", method = RequestMethod.DELETE) public ResponseEntity deleteConsomationById( - @PathVariable - String consomationId); + @PathVariable + String consomationId); } diff --git a/src/main/java/etunicorn/generated/EvenementController.java b/src/main/java/etunicorn/generated/EvenementController.java index ed628b7..ce0a4f0 100644 --- a/src/main/java/etunicorn/generated/EvenementController.java +++ b/src/main/java/etunicorn/generated/EvenementController.java @@ -1,16 +1,20 @@ package etunicorn.generated; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; - import java.math.BigDecimal; import java.util.Date; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/evenement") @@ -19,50 +23,55 @@ public interface EvenementController { /** * Obtenir la liste de tout les evenements. Nécessite EVNMT_ADMIN ou EVNMT_ACHETER ou EVNMT_REMBOURSER + * */ @RequestMapping(value = "", method = RequestMethod.GET) public ResponseEntity getEvenement(); /** * Permet de creer un nouvel evenement. Nécessite EVNMT_ADMIN + * */ @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity updateEvenement( - @RequestParam - String nomEvenement, - @RequestParam - BigDecimal prix, - @RequestParam - Date date); + @RequestParam + String nomEvenement, + @RequestParam + BigDecimal prix, + @RequestParam + Date date); /** * Permet de modifier un évènement existant. Nécessite EVNMT_ADMIN + * */ @RequestMapping(value = "/{evenementId}", method = RequestMethod.PUT) public ResponseEntity updateEvenementById( - @PathVariable - String evenementId, - @RequestParam(required = false) - String nomEvenement, - @RequestParam(required = false) - BigDecimal prix, - @RequestParam(required = false) - Date date); + @PathVariable + String evenementId, + @RequestParam(required = false) + String nomEvenement, + @RequestParam(required = false) + BigDecimal prix, + @RequestParam(required = false) + Date date); /** * Obtenir l'evenement {evenementId}. Nécessite EVNMT_ADMIN ou EVNMT_ACHETER ou EVNMT_REMBOURSER + * */ @RequestMapping(value = "/{evenementId}", method = RequestMethod.GET) public ResponseEntity getEvenementById( - @PathVariable - String evenementId); + @PathVariable + String evenementId); /** * Permet de supprimer l'evenement {evenementId}. Nécessite EVNMT_ADMIN + * */ @RequestMapping(value = "/{evenementId}", method = RequestMethod.DELETE) public ResponseEntity deleteEvenementById( - @PathVariable - String evenementId); + @PathVariable + String evenementId); } diff --git a/src/main/java/etunicorn/generated/LoginController.java b/src/main/java/etunicorn/generated/LoginController.java index c5d5b33..d048eef 100644 --- a/src/main/java/etunicorn/generated/LoginController.java +++ b/src/main/java/etunicorn/generated/LoginController.java @@ -2,12 +2,17 @@ package etunicorn.generated; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/login") @@ -16,20 +21,22 @@ public interface LoginController { /** * Instancie une nouvelle connexion + * */ @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity updateLogin( - @RequestParam - String login, - @RequestParam(required = false) - String password); + @RequestParam + String login, + @RequestParam(required = false) + String password); /** * Se déconnecter + * */ @RequestMapping(value = "/{token}", method = RequestMethod.DELETE) public ResponseEntity deleteLoginByToken( - @PathVariable - String token); + @PathVariable + String token); } diff --git a/src/main/java/etunicorn/generated/ParticipeController.java b/src/main/java/etunicorn/generated/ParticipeController.java index d51a31f..921d682 100644 --- a/src/main/java/etunicorn/generated/ParticipeController.java +++ b/src/main/java/etunicorn/generated/ParticipeController.java @@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/participe") @@ -19,22 +20,24 @@ public interface ParticipeController { /** * Permet d'ajouter une personne a un evenement + * */ @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity updateParticipe( - @RequestParam - Long idPersonne, - @RequestParam - Long idEvenement); + @RequestParam + Long idPersonne, + @RequestParam + Long idEvenement); /** * Permet de savoir si une personne participe a un evenement + * */ @RequestMapping(value = "", method = RequestMethod.GET) public ResponseEntity getParticipe( - @RequestParam - Long idPersonne, - @RequestParam - Long idEvenement); + @RequestParam + Long idPersonne, + @RequestParam + Long idEvenement); } diff --git a/src/main/java/etunicorn/generated/PersonneController.java b/src/main/java/etunicorn/generated/PersonneController.java index 4312be4..3061a1e 100644 --- a/src/main/java/etunicorn/generated/PersonneController.java +++ b/src/main/java/etunicorn/generated/PersonneController.java @@ -1,15 +1,20 @@ package etunicorn.generated; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; - +import java.math.BigDecimal; import java.util.Date; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/personne") @@ -18,54 +23,59 @@ public interface PersonneController { /** * Obtenir la liste des persones. Nécessite COMPTE_ADMIN + * */ @RequestMapping(value = "", method = RequestMethod.GET) public ResponseEntity getPersonne(); /** * Ajoute une nouvelle personne + * */ @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity updatePersonne( - @RequestParam(required = false) - String carte, - @RequestParam(required = false) - Date naissance, - @RequestParam(required = false) - String login, - @RequestParam(required = false, defaultValue = "etudiant") - String role); + @RequestParam(required = false) + String carte, + @RequestParam(required = false) + Date naissance, + @RequestParam(required = false) + String login, + @RequestParam(required = false, defaultValue = "etudiant") + String role); /** * Obtenir les infos sur une personne. Nécessite COMPTE_ADMIN + * */ @RequestMapping(value = "/{idPersonne}", method = RequestMethod.GET) public ResponseEntity getPersonneById( - @PathVariable - String idPersonne); + @PathVariable + BigDecimal idPersonne); /** * Modifer les infos d'une personne. Nécessite COMPTE_ADMIN + * */ @RequestMapping(value = "/{idPersonne}", method = RequestMethod.PUT) public ResponseEntity updatePersonneById( - @PathVariable - String idPersonne, - @RequestParam(required = false) - String carte, - @RequestParam(required = false) - Date naissance, - @RequestParam(required = false) - String login, - @RequestParam(required = false) - String role); + @PathVariable + BigDecimal idPersonne, + @RequestParam(required = false) + String carte, + @RequestParam(required = false) + Date naissance, + @RequestParam(required = false) + String login, + @RequestParam(required = false) + String role); /** * Obtenir les infos sur une personne. Nécessite COMPTE_ADMIN + * */ @RequestMapping(value = "/{idPersonne}", method = RequestMethod.DELETE) public ResponseEntity deletePersonneById( - @PathVariable - String idPersonne); + @PathVariable + BigDecimal idPersonne); } diff --git a/src/main/java/etunicorn/generated/RoleController.java b/src/main/java/etunicorn/generated/RoleController.java index a1942bf..6f8b2d3 100644 --- a/src/main/java/etunicorn/generated/RoleController.java +++ b/src/main/java/etunicorn/generated/RoleController.java @@ -2,12 +2,17 @@ package etunicorn.generated; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/role") @@ -16,48 +21,54 @@ public interface RoleController { /** * Liste les rôles. Nécessite ROLE_ADMIN + * */ @RequestMapping(value = "", method = RequestMethod.GET) public ResponseEntity getRole(); /** * Ajoute un nouveau rôle. Nécessite ROLE_ADMIN + * */ @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity updateRole( - @RequestParam - String nom); + @RequestParam + String nom); /** * Supprime un rôle. Nécessite ROLE_ADMIN + * */ @RequestMapping(value = "/{nomRole}", method = RequestMethod.DELETE) public ResponseEntity deleteRoleById( - @PathVariable - String nomRole); + @PathVariable + String nomRole); /** * Ajoute une permission à un rôle. Nécessite ROLE_ADMIN + * */ @RequestMapping(value = "/{nomRole}", method = RequestMethod.POST) public ResponseEntity updateRoleById( - @PathVariable - String nomRole, - @RequestParam - String nom); + @PathVariable + String nomRole, + @RequestParam + String nom); /** * Enlève la permission du rôle. Nécessite ROLE_ADMIN + * */ @RequestMapping(value = "/{nomRole}/{nomPermission}", method = RequestMethod.DELETE) public ResponseEntity deleteRoleByNomPermission( - @PathVariable - String nomPermission, - @PathVariable - String nomRole); + @PathVariable + String nomPermission, + @PathVariable + String nomRole); /** * Liste les permissions. Nécessite ROLE_ADMIN + * */ @RequestMapping(value = "/permission", method = RequestMethod.GET) public ResponseEntity getPermission(); diff --git a/src/main/java/etunicorn/generated/TransactionController.java b/src/main/java/etunicorn/generated/TransactionController.java index e3de8cc..99a95b2 100644 --- a/src/main/java/etunicorn/generated/TransactionController.java +++ b/src/main/java/etunicorn/generated/TransactionController.java @@ -1,15 +1,19 @@ package etunicorn.generated; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; - import java.math.BigDecimal; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; /** * No description * (Generated with springmvc-raml-parser v.0.8.9) + * */ @RestController @RequestMapping("/v1/transaction") @@ -18,65 +22,71 @@ public interface TransactionController { /** * Permet de recuperer la liste des transaction + * */ @RequestMapping(value = "", method = RequestMethod.GET) public ResponseEntity getTransaction(); /** * Permet de faire payer ou de crediter un Compte. >0 la personne a crediter de l'argent. <0 la personne a été débité. + * */ @RequestMapping(value = "/consomation", method = RequestMethod.POST) public ResponseEntity updateConsomation( - @RequestParam - Long participant, - @RequestParam - Long id); + @RequestParam + Long participant, + @RequestParam + Long id); /** - * - * + * + * */ @RequestMapping(value = "/evenement", method = RequestMethod.POST) public ResponseEntity updateEvenement( - @RequestParam - Long participant, - @RequestParam - Long id); + @RequestParam + Long participant, + @RequestParam + Long id); /** * Permet de recharger un compte + * */ @RequestMapping(value = "/evenement/credit", method = RequestMethod.POST) public ResponseEntity updateEvenementCredit( - @RequestParam - Long participant, - @RequestParam - BigDecimal prix); + @RequestParam + Long participant, + @RequestParam + BigDecimal prix); /** * Permet de debiter la carte + * */ @RequestMapping(value = "/evenement/debit", method = RequestMethod.POST) public ResponseEntity updateEvenementDebit( - @RequestParam - Long participant, - @RequestParam - BigDecimal prix); + @RequestParam + Long participant, + @RequestParam + BigDecimal prix); /** * Permet de recuperer la liste des transaction d'une personne + * */ @RequestMapping(value = "/participant/{idPersonne}", method = RequestMethod.GET) public ResponseEntity getParticipantByIdPersonne( - @PathVariable - String idPersonne); + @PathVariable + String idPersonne); /** * Permet de recuperer la liste des transaction d'une personne + * */ @RequestMapping(value = "/acteur/{idPersonne}", method = RequestMethod.GET) public ResponseEntity getActeurByIdPersonne( - @PathVariable - String idPersonne); + @PathVariable + String idPersonne); } diff --git a/src/main/main.iml b/src/main/main.iml index 3b5d9b9..232395b 100644 --- a/src/main/main.iml +++ b/src/main/main.iml @@ -1,5 +1,10 @@ + + + + + @@ -14,5 +19,11 @@ + + + + + + \ No newline at end of file -- libgit2 0.21.2