Skip to content

Equipe-Meta-Code/Backend-NutriMind-Xertica

Repository files navigation

nutrimind-Backend

Meal dayOfWeek support

  • Adds dayOfWeek to Meal entity and API payloads.
  • Valid values: Segunda-Feira, Terça-Feira, Quarta-Feira, Quinta-Feira, Sexta-Feira, Sábado, Domingo.
  • Included in MealFullCreateDTO (required) and MealResponseDTO.

New endpoints

  • GET /meal-plans/{id}/meals/day/{dayOfWeek}: list meals for a plan filtered by day.
  • GET /meal-plans/{id}/meals/group-by-day: group meals by day for a plan.

API responses

  • All meal plan routes now return MealPlanResponseDTO only.
  • MealPlanResponseDTO includes plan details, mealList, and mealItems.
  • MealPlanFullResponseDTO was removed to avoid duplication.

Migration

  • A startup migration sets dayOfWeek to Segunda-Feira for legacy meals with null/blank values.

Notes

  • Schema updates are handled by Hibernate (spring.jpa.hibernate.ddl-auto=update).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages