Skip to content

feat(childManage): add goal management endpoints

oumaima lamdira a demandé de fusionner IA-694-ap-backend-gestion-des-objectifs vers develop

📌 Description:

This PR introduces a complete CRUD implementation for managing Goals assigned to children within the Child Management module. The following features were added:


Added Endpoints:

  • POST /api/child-management/goals: Create a new goal for a specific child and subject.
  • PUT /api/child-management/goals/{goalId}: Update an existing goal by ID.
  • DELETE /api/child-management/goals/{goalId}: Delete a goal by ID.
  • GET /api/child-management/goals/child/{childId}: Retrieve all goals assigned to a specific child.

📁 Changes Summary:

  • GoalController: Implements all the goal-related REST APIs using GoalService.
  • GoalDTO: Validated DTO for input/output mapping of goal data.
  • ApiPaths.Goal: Centralized API paths to ensure consistency and maintainability.
  • Added proper validation, error handling (via FunctionalException), and OpenAPI annotations for documentation.

Closes IA-694

Rapports de requête de fusion