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

Change 2 new endpoints to put, which is more accurate than patch. #954

Merged
merged 2 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gordon360/Controllers/ProfilesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ public async Task<ActionResult<StudentProfileViewModel>> UpdateMobilePhoneNumber
/// Update office location (building description and room number)
/// </summary>
/// <returns></returns>
[HttpPatch]
[HttpPut]
[Route("office_location")]
public async Task<ActionResult<FacultyStaffProfileViewModel>> UpdateOfficeLocation(OfficeLocationPatchViewModel officeLocation)
{
Expand All @@ -467,7 +467,7 @@ public async Task<ActionResult<FacultyStaffProfileViewModel>> UpdateOfficeLocati
/// </summary>
/// <param name="value">office hours</param>
/// <returns></returns>
[HttpPatch]
[HttpPut]
[Route("office_hours")]
public async Task<ActionResult<FacultyStaffProfileViewModel>> UpdateOfficeHours(string value)
{
Expand Down
10 changes: 0 additions & 10 deletions Gordon360/Documentation/Gordon360.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading