Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
awa-w5d5-microservices
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
StudentAddressDetails
awa-w5d5-microservices
Commits
4d4f5d79
Commit
4d4f5d79
authored
Apr 02, 2021
by
Xiyang Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding email address update functionality
parent
6ad14369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
StudentAddressController.java
...ntaddressservice/controller/StudentAddressController.java
+6
-2
No files found.
student-address-service/src/main/java/service/student/studentaddressservice/controller/StudentAddressController.java
View file @
4d4f5d79
...
@@ -29,6 +29,10 @@ public class StudentAddressController {
...
@@ -29,6 +29,10 @@ public class StudentAddressController {
return
studentAddressService
.
createStudentAddress
(
studentAddress
);
return
studentAddressService
.
createStudentAddress
(
studentAddress
);
}
}
@PutMapping
(
"/studentaddress/{email}"
)
public
ResponseEntity
<
StudentAddress
>
updateStudentAddress
(
@PathVariable
(
"email"
)
String
email
,
@RequestBody
StudentAddress
studentAddress
)
throws
ResourceNotFoundException
{
StudentAddress
updatedStudentAddress
=
studentAddressService
.
updateStudentAddress
(
studentAddress
,
email
);
return
ResponseEntity
.
ok
(
updatedStudentAddress
);
}
}
}
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