Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 7 - Add Swagger configuration #8

Merged
merged 44 commits into from
Oct 15, 2024
Merged

Conversation

jkuznik
Copy link
Owner

@jkuznik jkuznik commented Oct 13, 2024

Dodałem konfigurację swagger z nastawieniem na obsługę samego swagger z wykorzystaniem pliku yaml. Szablon dodawania zawartości samego yamla -> https://editor.swagger.io/

Daje to możliwość opisania poszczególnych endpointów bez zaciemniania kodu w klasie kontrolera adnotacjami swaggera

Przykładowy kod dla metody PATCH w kontrolerze oraz rezultat w swagger gdzie dla wygody PathVariable oraz RequestBody są predefiniowane przed wykonaniem testowego zapytania
image
image

@jkuznik jkuznik changed the title Add Swagger configuration Task 7 Add Swagger configuration Oct 13, 2024
@jkuznik jkuznik changed the title Task 7 Add Swagger configuration Task 7 - Add Swagger configuration Oct 13, 2024
Copy link
Collaborator

@RobertoJavaDev RobertoJavaDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trzeba rozwiązać konflikty.

RobertoJavaDev and others added 20 commits October 14, 2024 22:28
- Changed table name from 'user' to 'users'.
- Added Lombok annotations @NoArgsConstructor and @AllArgsConstructor for constructor generation.
Enhanced the User entity with automatic handling of creation and update timestamps using LocalDate. Added @PrePersist and @PreUpdate annotations to manage these fields dynamically upon saving or updating the entity.
Created the UserMapper interface to facilitate the mapping between User entities and UserDTO objects. This will help in data transfer operations across different layers of the application, ensuring clean separation of concerns and data integrity.
@jkuznik
Copy link
Owner Author

jkuznik commented Oct 14, 2024

This branch has no conflicts with the base branch - aktualny status PR,

pipeline nie przechodzi z powodu braku changelogów z CREATE TABLE

@jkuznik jkuznik merged commit 5a62d4a into master Oct 15, 2024
1 check failed
@jkuznik jkuznik deleted the Task-7-Swagger-Configuration branch November 4, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants