jpe-controle/FencerJudgeBack
2025-05-31 01:16:40 +02:00
..
gradle/wrapper initial project 2025-04-11 15:37:07 +02:00
src ajout premières fonctions aux services 2025-05-31 01:16:40 +02:00
.gitattributes initial project 2025-04-11 15:37:07 +02:00
.gitignore initial project 2025-04-11 15:37:07 +02:00
build.gradle.kts ajout premières fonctions aux services 2025-05-31 01:16:40 +02:00
conception.txt maj README, fichier conception avec pseudo-code (à finir) 2025-05-30 19:44:50 +02:00
gradlew initial project 2025-04-11 15:37:07 +02:00
gradlew.bat initial project 2025-04-11 15:37:07 +02:00
README.md ajout premières fonctions aux services 2025-05-31 01:16:40 +02:00
settings.gradle.kts initial project 2025-04-11 15:37:07 +02:00

Entités

MATCHS

  • id
  • player1
  • player2
  • referee (arbitre)
  • score1 (score du joueur 1)
  • score2 (score du joueur 2)
  • date
  • state (état du match : en cours, terminé, pas commencé)

ETATS D'UN MATCH

  • ONGOING
  • OVER
  • NOT STARTED

ARBITRES

  • id
  • name (nom de famille)
  • firstName (prénom)

JOUEURS

  • id
  • name (nom de famille)
  • firstName (prénom)

Actions REST sur les entités

MATCHS (MatchRestController, "/matchs")

  • Lister tous les matchs -> MatchRestController.getAll()
  • Lister tous les matchs à partir d'une certaine date -> MatchRestController.getAllFromDate(Date date)
  • Lister les matchs en cours (état : en cours) -> MatchRestController.getAllActive()
  • Lister les matchs terminés (état : terminé) -> MatchRestController.getAllOver()
  • Lister les matchs non commencés (état : non commencé) -> MatchRestController.getAllNotStarted()
  • Afficher un match par id -> MatchRestController.get(Long matchID)
  • Mettre à jour le score1 d'un match récupéré par id -> MatchRestController.updateScore1Of(Long matchID, String newScore1)
  • Mettre à jour le score2 d'un match récupéré par id -> MatchRestController.updateScore2Of(Long matchID, String newScore2)
  • Ajouter un match -> MatchRestController.add(Date date, Long refereeID, Long player1ID, Long player2ID)
  • Supprimer un match (supprimer élément de MatchRepository en récupérant l'id) -> MatchRestController.delete(Long matchID)

ARBITRES (RefereeRestController, "/referees") :

  • Lister tous les arbitres -> RefereeRestController.getAll()
  • Afficher un arbitre par id -> RefereeRestController.get(Long refereeID)
  • Afficher un arbitre par nom -> RefereeRestController.get(String refereeName)
  • Ajouter un arbitre -> RefereeRestController.add(String name, String firstName)
  • Supprimer un arbitre -> RefereeRestController.delete(Long refereeID)

JOUEURS (PlayerRestController, "/players") :

  • Lister tous les joueurs -> PlayerRestController.getAll()
  • Afficher un joueur par id -> PlayerRestController.get(Long playerID)
  • Afficher un joueur par nom -> PlayerRestController.get(String playerName)
  • Ajouter un joueur -> PlayerRestController.add(String name, String firstName)
  • Supprimer un joueur -> PlayerRestController.delete(String name, String firstName)