Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces an initial implementation of the API for appointment booking by defining mappers and controllers for treatments and appointments. Key changes include:
- New API mappers for translating between transfer objects and internal models.
- Controllers for handling treatment and appointment endpoints.
- A configuration class to wire the new mappers as Spring beans.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/com/capgemini/training/appointmentbooking/services/mapper/TreatmentApiMapper.java | Introduces mapping logic for treatment-related objects. |
| src/main/java/com/capgemini/training/appointmentbooking/services/mapper/AppointmentApiMapper.java | Adds conversion functions for appointment-related data. |
| src/main/java/com/capgemini/training/appointmentbooking/services/impl/TreatmentsApiController.java | Implements treatment API endpoints. |
| src/main/java/com/capgemini/training/appointmentbooking/services/impl/AppointmentsApiController.java | Implements appointment API endpoints. |
| src/main/java/com/capgemini/training/appointmentbooking/services/config/ServicesMappingConfiguration.java | Configures mapper beans for dependency injection. |
...ain/java/com/capgemini/training/appointmentbooking/services/mapper/AppointmentApiMapper.java
Show resolved
Hide resolved
...in/java/com/capgemini/training/appointmentbooking/services/impl/TreatmentsApiController.java
Show resolved
Hide resolved
.../java/com/capgemini/training/appointmentbooking/services/impl/AppointmentsApiController.java
Show resolved
Hide resolved
src/main/java/com/capgemini/training/appointmentbooking/services/mapper/TreatmentApiMapper.java
Show resolved
Hide resolved
...ain/java/com/capgemini/training/appointmentbooking/services/mapper/AppointmentApiMapper.java
Show resolved
Hide resolved
b96c61d to
4cf81ae
Compare
bba3df4 to
e25fee4
Compare
piterhub
requested changes
Mar 31, 2025
Contributor
piterhub
left a comment
There was a problem hiding this comment.
Testy chcesz zrobić w osobnym PR?
.../com/capgemini/training/appointmentbooking/services/config/ServicesMappingConfiguration.java
Outdated
Show resolved
Hide resolved
.../com/capgemini/training/appointmentbooking/services/config/ServicesMappingConfiguration.java
Outdated
Show resolved
Hide resolved
...in/java/com/capgemini/training/appointmentbooking/services/impl/TreatmentsApiController.java
Show resolved
Hide resolved
piterhub
approved these changes
Apr 1, 2025
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.
wstępna wersja API.