diff --git a/bruno/VoD-System/Media/Save Stream Section By Markers.bru b/bruno/VoD-System/Media/Save Stream Section By Markers.bru new file mode 100644 index 0000000..9b5f6b8 --- /dev/null +++ b/bruno/VoD-System/Media/Save Stream Section By Markers.bru @@ -0,0 +1,24 @@ +meta { + name: Save Stream Section By Markers + type: http + seq: 4 +} + +post { + url: {{base_url}}/media/save/markers + body: json + auth: inherit +} + +body:json { + { + "startMarkerId": 1, + "endMarkerId": 2, + "title": "Hello", + "description": "my clip" + } +} + +script:post-response { + bru.setEnvVar("uuid", res.getBody().data.uuid); +} diff --git a/src/main/java/com/ddf/vodsystem/controllers/dto/SaveSectionByMarkerRequest.java b/src/main/java/com/ddf/vodsystem/controllers/dto/SaveSectionByMarkerRequest.java new file mode 100644 index 0000000..d9fb862 --- /dev/null +++ b/src/main/java/com/ddf/vodsystem/controllers/dto/SaveSectionByMarkerRequest.java @@ -0,0 +1,9 @@ +package com.ddf.vodsystem.controllers.dto; + +import jakarta.validation.constraints.NotNull; + +public record SaveSectionByMarkerRequest( + @NotNull Long startMarkerId, + @NotNull Long endMarkerId, + String title, + String description) {}