chore: release 21 + jandex 3.2.4 + sendVerificationEmail retourne Response 202 + .gitignore

- pom.xml : <release>21</release> explicite, jandex 3.1.0 → 3.2.4
- UserResourceApi.sendVerificationEmail : retourne Response (202/404) au
  lieu de void — permet au client de discerner les cas
- .gitignore complet pour Maven library

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
dahoud
2026-04-21 12:46:09 +00:00
parent dedfe0be4c
commit 6161ac30b0
3 changed files with 123 additions and 2 deletions

114
.gitignore vendored Normal file
View File

@@ -0,0 +1,114 @@
# ====================================
# GITIGNORE POUR SERVER API (Maven Library)
# ====================================
# ===== MAVEN =====
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
.flattened-pom.xml
# ===== JAVA COMPILED FILES =====
*.class
*.jar
*.war
*.ear
*.nar
*.zip
*.tar.gz
*.rar
# ===== IDE - ECLIPSE =====
.project
.classpath
.settings/
.factorypath
.metadata/
bin/
.apt_generated
.springBeans
.sts4-cache
# ===== IDE - INTELLIJ IDEA =====
.idea/
*.iml
*.ipr
*.iws
out/
# ===== IDE - NETBEANS =====
nbproject/
nbbuild/
nbdist/
.nb-gradle/
nb-configuration.xml
nbactions.xml
# ===== IDE - VS CODE =====
.vscode/
*.code-workspace
# ===== OS SPECIFIC =====
.DS_Store
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*~
# ===== LOGS =====
*.log
*.log.*
logs/
log/
# ===== TEMPORARY FILES =====
*.tmp
*.temp
*.bak
*.backup
*.old
*.swp
*.swo
*.orig
*.rej
# ===== ENVIRONMENT & CONFIGURATION =====
.env
.env.local
.env.*
*.local
application-local.properties
# ===== SECURITY - KEYS & CERTIFICATES =====
*.key
*.pem
*.crt
*.p12
*.jks
*.keystore
.certs/
.certificates/
# ===== TEST COVERAGE =====
.jacoco/
jacoco.exec
coverage/
.nyc_output/
# ===== GENERATED SOURCES =====
src/gen/
generated-sources/
generated-test-sources/
# ===== BUILD ARTIFACTS =====
dist/
build/
out/

View File

@@ -67,13 +67,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>21</release>
</configuration>
</plugin>
<!-- Jandex Maven Plugin pour générer l'index Jandex -->
<plugin>
<groupId>io.smallrye</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.4</version>
<executions>
<execution>
<id>make-index</id>

View File

@@ -96,7 +96,11 @@ public interface UserResourceApi {
@POST
@Path("/{userId}/send-verification-email")
@Operation(summary = "Envoyer email de vérification", description = "Envoie un email de vérification à l'utilisateur")
void sendVerificationEmail(
@APIResponses({
@APIResponse(responseCode = "202", description = "Demande acceptée (email envoyé ou tentative effectuée)"),
@APIResponse(responseCode = "404", description = "Utilisateur non trouvé")
})
Response sendVerificationEmail(
@PathParam("userId") String userId,
@QueryParam("realm") String realmName);