From 451dbcc22abc1dd9510ebdad97eb64f1a7a44533 Mon Sep 17 00:00:00 2001 From: Vicente Vigueras Date: Mon, 8 Apr 2024 16:12:04 +0000 Subject: [PATCH] chore: Refactoring for consistence --- .../web/{CreatePatronRequest.java => CreatePatronsRequest.java} | 2 +- .../{CreatePatronResponse.java => CreatePatronsResponse.java} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/{CreatePatronRequest.java => CreatePatronsRequest.java} (91%) rename lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/{CreatePatronResponse.java => CreatePatronsResponse.java} (78%) diff --git a/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronRequest.java b/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronsRequest.java similarity index 91% rename from lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronRequest.java rename to lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronsRequest.java index c8f118eb..def5e1a3 100644 --- a/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronRequest.java +++ b/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronsRequest.java @@ -11,7 +11,7 @@ @AllArgsConstructor @NoArgsConstructor @Builder -public class CreatePatronRequest { +public class CreatePatronsRequest { @NotNull(message = "patron is required") @Valid private PatronsRequest patron; } diff --git a/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronResponse.java b/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronsResponse.java similarity index 78% rename from lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronResponse.java rename to lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronsResponse.java index 99a776f2..866f00d4 100644 --- a/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronResponse.java +++ b/lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/CreatePatronsResponse.java @@ -5,6 +5,6 @@ @Data @Builder -public class CreatePatronResponse { +public class CreatePatronsResponse { private PatronsResponse patron; }