Files
VLoop/test/video.json
2025-12-09 15:31:27 +08:00

68 lines
2.0 KiB
JSON

{
"info": {
"name": "FeedSystem Video API",
"_postman_id": "8294cdbd-2324-4cac-8768-6bf2157d272b",
"description": "Video endpoints without embedded scripts. Supply jwt_token manually for publish request.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "List Videos By Author ID",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"author_id\": {{authorId}}\n}"
},
"url": {
"raw": "{{host}}/video/listByAuthorID",
"host": ["{{host}}"],
"path": ["video", "listByAuthorID"]
}
}
},
{
"name": "Get Video Detail",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"id\": {{videoId}}\n}"
},
"url": {
"raw": "{{host}}/video/getDetail",
"host": ["{{host}}"],
"path": ["video", "getDetail"]
}
}
},
{
"name": "Publish Video (JWT protected)",
"request": {
"method": "POST",
"header": [
{ "key": "Content-Type", "value": "application/json" },
{ "key": "Authorization", "value": "Bearer {{jwt_token}}" }
],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"demo video\",\n \"description\": \"manual request\",\n \"play_url\": \"http://example.com/demo.mp4\"\n}"
},
"url": {
"raw": "{{host}}/video/publish",
"host": ["{{host}}"],
"path": ["video", "publish"]
}
}
}
],
"variable": [
{ "key": "host", "value": "http://localhost:8080" },
{ "key": "authorId", "value": "1" },
{ "key": "videoId", "value": "1" },
{ "key": "jwt_token", "value": "" }
]
}