feat(api): Epic NTR-4 — API Layer complet#1
Merged
Conversation
- Remplace ci.yml par 3 workflows spécialisés : ci-unit.yml : tests unitaires sur PR feature/* → dev ci-deploy.yml : build Release + intégration + deploy VPS (dev → prod) ci-release.yml : suite complète + couverture sur PR dev → main - Ajoute CONTRIBUTING.md : workflow branches, stratégie CI, feuille de route smoke tests (3 niveaux) - Met à jour README.md avec section gestion des branches
- Interfaces/Services/ : IUserService, IDietPlanService, IDietService, IMealService, IFoodItemService, INutritionService, IAdminService - Interfaces/Repositories/ : IDietPlanRepository, IDietRepository, IMealRepository, IFoodItemRepository, ISavedFoodItemRepository - Interfaces/ExternalServices/ : IFoodCacheService, IKeycloakAdminService, IEmailService - DTOs manquants créés pour tous les domaines (DietPlans, Diets, Meals, FoodItems, Nutrition, Admin, Users) - UserService implémente IUserService (stubs NotImplementedException pour les méthodes futures) - DependencyInjection.cs enregistre IUserService → UserService
- NTR-57 : JWT Keycloak (AddAuthentication/JwtBearer), KeycloakClaimsTransformation, UserResolutionMiddleware - NTR-58 : ExceptionMiddleware — mapping exceptions → ProblemDetails (404/409/403/422/500) - NTR-59 : Swagger avec sécurité JWT Bearer - ClaimsPrincipalExtensions — GetUserId() sur HttpContext - Program.cs — pipeline middleware complet - 12 tests unitaires verts
…e #NTR-22 - Tous les endpoints UsersController implémentés (profil, RGPD, pesées, favoris) - UsersControllerTest : 11 tests couvrant les 4 sections - DTOs : retrait de [ExcludeFromCodeCoverage] + using associé (24 fichiers) - coverage.runsettings : ajout ExcludeByFile pour DTOs - .csproj tests : RunSettingsFilePath auto-chargé (chemin Linux corrigé) - ci-unit.yml : --settings tests/coverage.runsettings ajouté - README : commandes dotnet test et reportgenerator mises à jour
… Admin + tests unitaires #NTR-23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Implémentation complète de la couche API.
Stories incluses