Skip to content

Commit

Permalink
Spring 6: Added additional REST mapping for backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydamage committed May 26, 2023
1 parent 4aa92ae commit 6a97e0e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,14 @@ public ResponseEntity<?> getSelf() {
return response;
}

@PostMapping("/{type}/")
public <T extends ObjectType> ResponseEntity<?> addObjectAlt(
@PathVariable("type") String type,
@RequestParam(value = "options", required = false) List<String> options,
@RequestBody @NotNull PrismObject<T> object) {
return addObject(type, options, object);
}

@PostMapping("/{type}")
public <T extends ObjectType> ResponseEntity<?> addObject(
@PathVariable("type") String type,
Expand Down

0 comments on commit 6a97e0e

Please sign in to comment.