Ajout du backend pour la fonctionnalité EcoNews : récupération, favoris, tracking et export CSV#46
Merged
Merged
Conversation
added 2 commits
June 13, 2025 12:07
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.
Cette Pull Request implémente l'intégralité de la logique serveur pour la fonctionnalité EcoNews, en lien avec le front React :
📥 Récupération d’actualités externes
GET /api/v1/news/external-news?topic=...⭐ Gestion des favoris
GET /api/v1/favorites— récupération des articles favoris de l’utilisateur connectéPOST /api/v1/favorites— ajout d’un article en favoriDELETE /api/v1/favorites?url=...— suppression d’un favoriFavoriteArticle🔍 Tracking des vues d’articles
POST /api/v1/news/viewGET /api/v1/news/views— historique completGET /api/v1/news/views/stats— total et dernier article consultéGET /api/v1/news/views/top— top 10 des articles les plus consultés (tous utilisateurs)GET /api/v1/news/views/export— export CSV personnalisé par utilisateur (authentifié)🔒 Sécurité
SecurityConfigurationpour autoriser :/api/v1/news/views/export/api/v1/news/external-news💾 Technique
ArticleViewFavoriteArticleNewsService,FavoriteArticleServiceArticleViewRequestpour encapsuler le POST de tracking3307:3306)🧪 À tester :
Ce backend est complètement fonctionnel avec le front développé sur la branche
feat/eco-newsdu repoFrontend. Il offre une UX fluide, sécurisée et cohérente pour la navigation dans les actualités écologiques.