File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/org/gridsuite/studyconfig/server/controller
test/java/org/gridsuite/studyconfig/server Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public ResponseEntity<Void> updateSpreadsheetConfig(
101101 return ResponseEntity .noContent ().build ();
102102 }
103103
104- @ PatchMapping ("/{id}/name" )
104+ @ PutMapping ("/{id}/name" )
105105 @ Operation (summary = "Rename a spreadsheet configuration" ,
106106 description = "Updates the name of an existing spreadsheet configuration" )
107107 @ ApiResponse (responseCode = "204" , description = "Configuration renamed" )
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ void testRenameSpreadsheetConfig() throws Exception {
456456 UUID configUuid = saveAndReturnId (configToRename );
457457
458458 String newName = "RenamedConfig" ;
459- mockMvc .perform (patch (URI_SPREADSHEET_CONFIG_GET_PUT + configUuid + "/name" )
459+ mockMvc .perform (put (URI_SPREADSHEET_CONFIG_GET_PUT + configUuid + "/name" )
460460 .content (newName )
461461 .contentType (MediaType .APPLICATION_JSON ))
462462 .andExpect (status ().isNoContent ());
@@ -473,7 +473,7 @@ void testRenameSpreadsheetConfig() throws Exception {
473473 @ Test
474474 void testRenameNonExistentSpreadsheetConfig () throws Exception {
475475 UUID nonExistentUuid = UUID .randomUUID ();
476- mockMvc .perform (patch (URI_SPREADSHEET_CONFIG_GET_PUT + nonExistentUuid + "/name" )
476+ mockMvc .perform (put (URI_SPREADSHEET_CONFIG_GET_PUT + nonExistentUuid + "/name" )
477477 .content ("NewName" )
478478 .contentType (MediaType .APPLICATION_JSON ))
479479 .andExpect (status ().isNotFound ());
You can’t perform that action at this time.
0 commit comments