Task 1.1 - DTOs et Interfaces API de base
- Création de tous les DTOs d'authentification (LoginRequestDTO, LoginResponseDTO, TokenDTO, PasswordResetDTO) - Création des DTOs utilisateur (UserDTO, CreateUserDTO, UpdateUserDTO) - Création des DTOs communs (PagedResultDTO, ErrorResponseDTO, SuccessResponseDTO) - Création de toutes les classes d'exception (GBCMException, AuthenticationException, AuthorizationException, ValidationException, ResourceNotFoundException, BusinessRuleException) - Création des enums métier (ServiceType, WorkshopPackage, PaymentStatus, SessionStatus, InvoiceStatus) - Amélioration de l'interface AuthService avec documentation complète - Création de l'interface UserService avec tous les endpoints CRUD - Documentation Javadoc complète en français sur toutes les classes - Annotations OpenAPI/Swagger sur toutes les interfaces - Validation Jakarta sur tous les DTOs - Compilation réussie du module API
This commit is contained in:
28
pom.xml
28
pom.xml
@@ -39,6 +39,13 @@
|
||||
<version>${jakarta.ws.rs.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Jakarta Annotation (for @RolesAllowed) -->
|
||||
<dependency>
|
||||
<groupId>jakarta.annotation</groupId>
|
||||
<artifactId>jakarta.annotation-api</artifactId>
|
||||
<version>2.1.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Jackson Annotations -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
@@ -70,26 +77,7 @@
|
||||
<version>3.11.0</version>
|
||||
</plugin>
|
||||
|
||||
<!-- OpenAPI Generator Plugin -->
|
||||
<plugin>
|
||||
<groupId>org.openapitools</groupId>
|
||||
<artifactId>openapi-generator-maven-plugin</artifactId>
|
||||
<version>7.0.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.basedir}/src/main/resources/META-INF/openapi.yaml</inputSpec>
|
||||
<generatorName>java</generatorName>
|
||||
<configOptions>
|
||||
<sourceFolder>src/gen/java/main</sourceFolder>
|
||||
</configOptions>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user