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(
101
101
return ResponseEntity .noContent ().build ();
102
102
}
103
103
104
- @ PatchMapping ("/{id}/name" )
104
+ @ PutMapping ("/{id}/name" )
105
105
@ Operation (summary = "Rename a spreadsheet configuration" ,
106
106
description = "Updates the name of an existing spreadsheet configuration" )
107
107
@ ApiResponse (responseCode = "204" , description = "Configuration renamed" )
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ void testRenameSpreadsheetConfig() throws Exception {
456
456
UUID configUuid = saveAndReturnId (configToRename );
457
457
458
458
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" )
460
460
.content (newName )
461
461
.contentType (MediaType .APPLICATION_JSON ))
462
462
.andExpect (status ().isNoContent ());
@@ -473,7 +473,7 @@ void testRenameSpreadsheetConfig() throws Exception {
473
473
@ Test
474
474
void testRenameNonExistentSpreadsheetConfig () throws Exception {
475
475
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" )
477
477
.content ("NewName" )
478
478
.contentType (MediaType .APPLICATION_JSON ))
479
479
.andExpect (status ().isNotFound ());
You can’t perform that action at this time.
0 commit comments