Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
baby-monitoring-spring-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
R24-145
baby-monitoring-spring-backend
Commits
20e860a0
Commit
20e860a0
authored
May 22, 2024
by
Chamod Ishankha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dto changes
parent
4d8d4bc8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/main/java/com/kaluwa/enterprises/babycarebackendservice/dto/BabyDto.java
...aluwa/enterprises/babycarebackendservice/dto/BabyDto.java
+3
-3
src/main/java/com/kaluwa/enterprises/babycarebackendservice/model/Baby.java
...kaluwa/enterprises/babycarebackendservice/model/Baby.java
+3
-3
src/main/java/com/kaluwa/enterprises/babycarebackendservice/rest/BabyController.java
...terprises/babycarebackendservice/rest/BabyController.java
+3
-3
No files found.
src/main/java/com/kaluwa/enterprises/babycarebackendservice/dto/BabyDto.java
View file @
20e860a0
...
@@ -26,9 +26,9 @@ public class BabyDto {
...
@@ -26,9 +26,9 @@ public class BabyDto {
@NotEmpty
(
message
=
"Baby's gender is required"
)
@NotEmpty
(
message
=
"Baby's gender is required"
)
private
String
sex
;
private
String
sex
;
private
String
status
=
STATUS_NEW
;
private
String
status
=
STATUS_NEW
;
private
b
oolean
isActive
;
private
B
oolean
isActive
;
private
f
loat
weight
;
private
F
loat
weight
;
private
f
loat
height
;
private
F
loat
height
;
private
String
bloodType
;
private
String
bloodType
;
private
String
eyeColor
;
private
String
eyeColor
;
private
String
hairColor
;
private
String
hairColor
;
...
...
src/main/java/com/kaluwa/enterprises/babycarebackendservice/model/Baby.java
View file @
20e860a0
...
@@ -23,9 +23,9 @@ public class Baby {
...
@@ -23,9 +23,9 @@ public class Baby {
private
LocalDate
dob
;
private
LocalDate
dob
;
private
String
sex
;
private
String
sex
;
private
String
status
;
private
String
status
;
private
b
oolean
isActive
;
private
B
oolean
isActive
;
private
f
loat
weight
;
private
F
loat
weight
;
private
f
loat
height
;
private
F
loat
height
;
private
String
bloodType
;
private
String
bloodType
;
private
String
eyeColor
;
private
String
eyeColor
;
private
String
hairColor
;
private
String
hairColor
;
...
...
src/main/java/com/kaluwa/enterprises/babycarebackendservice/rest/BabyController.java
View file @
20e860a0
...
@@ -33,19 +33,19 @@ public class BabyController {
...
@@ -33,19 +33,19 @@ public class BabyController {
return
ResponseEntity
.
ok
(
babyService
.
getAllBabies
());
return
ResponseEntity
.
ok
(
babyService
.
getAllBabies
());
}
}
@GetMapping
(
"/{
i
d}"
)
@GetMapping
(
"/{
babyI
d}"
)
public
ResponseEntity
<
BabyDto
>
getBabyById
(
@PathVariable
Long
babyId
)
{
public
ResponseEntity
<
BabyDto
>
getBabyById
(
@PathVariable
Long
babyId
)
{
log
.
info
(
"Inside baby controller getBabyById method"
);
log
.
info
(
"Inside baby controller getBabyById method"
);
return
ResponseEntity
.
ok
(
babyService
.
getBabyById
(
babyId
));
return
ResponseEntity
.
ok
(
babyService
.
getBabyById
(
babyId
));
}
}
@PutMapping
(
"/{
i
d}"
)
@PutMapping
(
"/{
babyI
d}"
)
public
ResponseEntity
<
BabyDto
>
updateBaby
(
@PathVariable
Long
babyId
,
@RequestBody
BabyDto
babyDto
)
{
public
ResponseEntity
<
BabyDto
>
updateBaby
(
@PathVariable
Long
babyId
,
@RequestBody
BabyDto
babyDto
)
{
log
.
info
(
"Inside baby controller updateBaby method"
);
log
.
info
(
"Inside baby controller updateBaby method"
);
return
ResponseEntity
.
ok
(
babyService
.
updateBaby
(
babyId
,
babyDto
));
return
ResponseEntity
.
ok
(
babyService
.
updateBaby
(
babyId
,
babyDto
));
}
}
@DeleteMapping
(
"/{
i
d}"
)
@DeleteMapping
(
"/{
babyI
d}"
)
public
ResponseEntity
<
ResponseDto
>
deleteBaby
(
@PathVariable
Long
babyId
)
{
public
ResponseEntity
<
ResponseDto
>
deleteBaby
(
@PathVariable
Long
babyId
)
{
log
.
info
(
"Inside baby controller deleteBaby method"
);
log
.
info
(
"Inside baby controller deleteBaby method"
);
return
ResponseEntity
.
ok
(
babyService
.
deleteBaby
(
babyId
));
return
ResponseEntity
.
ok
(
babyService
.
deleteBaby
(
babyId
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment