feat(lesereisen): data model + Flyway migration — GeschichteType, JourneyItem, migrate geschichten_documents #787
@@ -102,6 +102,10 @@ public class GeschichteController {
|
|||||||
|
|
||||||
@PutMapping("/{id}/items/reorder")
|
@PutMapping("/{id}/items/reorder")
|
||||||
@RequirePermission(Permission.BLOG_WRITE)
|
@RequirePermission(Permission.BLOG_WRITE)
|
||||||
|
@Operation(
|
||||||
|
summary = "Reorder journey items",
|
||||||
|
description = "itemIds must contain ALL item IDs for the given journey in the desired new order. Sending a partial list returns 400 Bad Request."
|
||||||
|
)
|
||||||
public List<JourneyItemView> reorderItems(
|
public List<JourneyItemView> reorderItems(
|
||||||
@PathVariable UUID id,
|
@PathVariable UUID id,
|
||||||
@RequestBody JourneyReorderDTO dto) {
|
@RequestBody JourneyReorderDTO dto) {
|
||||||
|
|||||||
Reference in New Issue
Block a user