docs(bruno): save with marker endpoint
This commit is contained in:
24
bruno/VoD-System/Media/Save Stream Section By Markers.bru
Normal file
24
bruno/VoD-System/Media/Save Stream Section By Markers.bru
Normal file
@@ -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);
|
||||||
|
}
|
||||||
@@ -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) {}
|
||||||
Reference in New Issue
Block a user