Commit graph

8 commits

Author SHA1 Message Date
b2314bcf36 Implement REST API controllers, web adapters, and API documentation
- Create UserController, WorkoutController, and SessionController to expose application use cases via REST endpoints
- Add request and response DTOs alongside web mappers for the User, Workout, and Session domains
- Introduce GlobalExceptionHandler to handle domain-specific exceptions and return HTTP 400 Bad Request responses
- Add Springdoc OpenAPI and Scalar dependencies to build.gradle for API documentation
- Configure OpenAPI and Scalar settings in the base and dev application properties
2026-06-09 21:01:00 -03:00
5c1b7bcdd2 Implement MongoDB persistence adapters for application domains
- Create Spring Data Mongo entities and repositories for User, Session, WorkoutPlan, WorkoutDay, and WorkoutExercise
- Add mappers to handle conversions between domain models and persistence entities
- Create persistence adapters implementing the save and load output ports for each domain
- Replace empty MongoAdapter placeholder files with fully functional PersistenceAdapter classes
- Remove unused UUID import from the User domain model
2026-06-04 13:02:31 -03:00
e52a07dd9a Implement application services and domain model mutations
- Add state transition and update methods to User, WorkoutDay, WorkoutPlan, and WorkoutExercise domain models
- Create service implementations for managing Users, WorkoutPlans, WorkoutDays, WorkoutExercises, and Sessions
- Add Spring Configuration classes (UserConfig, WorkoutConfig, SessionConfig) to register service beans
- Fix calculation of total time in WorkoutDay and add estimatedTime logic to WorkoutExercise
2026-06-02 20:36:15 -03:00
6f7a44e87b Refactor architecture into user, workout, and session domains
- Move domain models and exceptions into their corresponding modules
- Fix typos in interface names, renaming 'UserCase' to 'UseCase'
- Reorganize input and output ports for each specific domain
- Create dedicated web controllers and Mongo persistence adapters for the new modules
- Clean up unused application ports and legacy adapters
2026-05-31 18:30:48 -03:00
d97cdf49c2 Start Application out ports 2026-05-30 21:05:36 -03:00
065347b55f Finish ports in 2026-05-24 13:39:54 -03:00
245153c385 Create README.md 2026-05-22 11:34:19 -03:00
48e751c7c0 Start Project, Create Models and Start Ports 2026-05-22 11:08:01 -03:00