|
7 | 7 | "name": "Optional Change access of the video",
|
8 | 8 | "seq": 8,
|
9 | 9 | "request": {
|
10 |
| - "url": "{{baseURl}}/api/deposits/video/{{video_id}}", |
| 10 | + "url": "{{baseURL}}/api/deposits/video/{{video_id}}", |
11 | 11 | "method": "PUT",
|
12 | 12 | "headers": [
|
13 | 13 | {
|
|
19 | 19 | "params": [],
|
20 | 20 | "body": {
|
21 | 21 | "mode": "json",
|
22 |
| - "json": "{\n \"_access\": {\n \"update\": [\n \"[email protected]\",\n \"atlas-outreach-cds-video@cern.ch\" //Update the access according to category\n ],\n // If you want to restrict the video, update access read\n \"read\": [\n \"atlas-readaccess-active-members@cern.ch\"\n ]\n\n }\n}\n\n", |
| 22 | + "json": "{\n \"_access\": {\n \"update\": [\n \"[email protected]\",\n \"your-egroup@cern.ch\" //Update the access according to category\n ],\n // If you want to restrict the video, update access read\n \"read\": [\n \"your-egroup@cern.ch\"\n ]\n\n }\n}\n\n", |
23 | 23 | "formUrlEncoded": [],
|
24 | 24 | "multipartForm": []
|
25 | 25 | },
|
|
37 | 37 | "name": "Get project to check the flow is finished",
|
38 | 38 | "seq": 5,
|
39 | 39 | "request": {
|
40 |
| - "url": "{{baseURl}}/api/deposits/project/{{project_id}}", |
| 40 | + "url": "{{baseURL}}/api/deposits/project/{{project_id}}", |
41 | 41 | "method": "GET",
|
42 | 42 | "headers": [
|
43 | 43 | {
|
|
67 | 67 | "name": "Step 1- Create a project",
|
68 | 68 | "seq": 1,
|
69 | 69 | "request": {
|
70 |
| - "url": "{{baseURl}}/api/deposits/project/", |
| 70 | + "url": "{{baseURL}}/api/deposits/project/", |
71 | 71 | "method": "POST",
|
72 | 72 | "headers": [
|
73 | 73 | {
|
|
79 | 79 | "params": [],
|
80 | 80 | "body": {
|
81 | 81 | "mode": "json",
|
82 |
| - "json": "{\n \"$schema\": \"https://localhost:5000/schemas/deposits/records/videos/project/project-v1.0.0.json\",\n \"_access\": {\n \"update\": [\n \"[email protected]\",\n \"atlas-outreach-cds-video@cern.ch\"\n ],\n \"read\": [ // If you want to restrict the project, add access read\n \"atlas-readaccess-active-members@cern.ch\"\n ]\n },\n // Add category and type\n \"category\": \"ATLAS\",\n \"type\": \"VIDEO\"\n}", |
| 82 | + "json": "{\n \"$schema\": \"https://localhost:5000/schemas/deposits/records/videos/project/project-v1.0.0.json\",\n \"_access\": {\n \"update\": [\n \"[email protected]\",\n \"your-egroup@cern.ch\"\n ],\n \"read\": [ // If you want to restrict the project, add access read\n \"your-egroup@cern.ch\"\n ]\n },\n // Add category and type\n \"category\": \"ATLAS\",\n \"type\": \"VIDEO\"\n}", |
83 | 83 | "formUrlEncoded": [],
|
84 | 84 | "multipartForm": []
|
85 | 85 | },
|
|
99 | 99 | "name": "Step 2- Create a video",
|
100 | 100 | "seq": 2,
|
101 | 101 | "request": {
|
102 |
| - "url": "{{baseURl}}/api/deposits/video/", |
| 102 | + "url": "{{baseURL}}/api/deposits/video/", |
103 | 103 | "method": "POST",
|
104 | 104 | "headers": [
|
105 | 105 | {
|
|
111 | 111 | "params": [],
|
112 | 112 | "body": {
|
113 | 113 | "mode": "json",
|
114 |
| - "json": "{\n \"$schema\":\"https://localhost:5000/schemas/deposits/records/videos/video/video-v1.0.0.json\",\n \"_project_id\":\"{{project_id}}\",\n \"title\":\n {\n \"title\":\"217490_medium\"\n },\n\n \"vr\": false,\n \"featured\": false,\n \"language\": \"en\",\n \"contributors\": [\n {\n \"name\": \"Civelek, Zubeyde\",\n \"ids\": [\n {\n \"value\": \"868056\",\n \"source\": \"cern\"\n }\n ],\n \"email\": \"zubeyde.civelek@cern.ch\",\n \"role\": \"Co-Producer\"\n }\n ],\n \"description\": \"Description\",\n \"date\": \"2024-11-12\"\n}", |
| 114 | + "json": "{\n \"$schema\":\"https://localhost:5000/schemas/deposits/records/videos/video/video-v1.0.0.json\",\n \"_project_id\":\"{{project_id}}\",\n \"title\":\n {\n \"title\":\"217490_medium\"\n },\n\n \"vr\": false,\n \"featured\": false,\n \"language\": \"en\",\n \"contributors\": [\n {\n \"name\": \"Surname, Name\",\n \"ids\": [\n {\n \"value\": \"868056\",\n \"source\": \"cern\"\n }\n ],\n \"email\": \"test@cern.ch\",\n \"role\": \"Co-Producer\"\n }\n ],\n \"description\": \"Description\",\n \"date\": \"2024-11-12\"\n}", |
115 | 115 | "formUrlEncoded": [],
|
116 | 116 | "multipartForm": []
|
117 | 117 | },
|
|
131 | 131 | "name": "Step 3- Upload the video",
|
132 | 132 | "seq": 3,
|
133 | 133 | "request": {
|
134 |
| - "url": "{{baseURl}}/api/files/{{bucket_id}}/{{video_name}}", |
| 134 | + "url": "{{baseURL}}/api/files/{{bucket_id}}/{{video_name}}", |
135 | 135 | "method": "PUT",
|
136 | 136 | "headers": [
|
137 | 137 | {
|
|
151 | 151 | }
|
152 | 152 | ],
|
153 | 153 | "params": [],
|
154 |
| - "body": { |
155 |
| - "mode": "formUrlEncoded", |
156 |
| - "formUrlEncoded": [], |
157 |
| - "multipartForm": [ |
158 |
| - { |
159 |
| - "type": "file", |
160 |
| - "name": "", |
161 |
| - "value": [ |
162 |
| - "/Users/zubeydecivelek/Downloads/217490_medium.mp4" |
163 |
| - ], |
164 |
| - "enabled": true |
165 |
| - } |
166 |
| - ] |
167 |
| - }, |
168 | 154 | "script": {
|
169 | 155 | "req": "const fs = require('fs');\nconst path = require('path');\n\n// File details\nconst filename = \"CHANGE HERE\";\nconst filePath = \"CHANGE HERE\";\nbru.setEnvVar(\"video_name\",filename);\n\n// Read the file as raw binary data\nconst fileContent = fs.readFileSync(filePath);\n\n// Set request headers\nreq.setHeader(\"Content-Type\", \"video/mp4\"); // File content type\nreq.setHeader(\"Accept\", \"application/json, text/plain, */*\"); \nreq.setHeader(\"Accept-Encoding\", \"gzip, deflate, br, zstd\"); \nreq.setHeader(\"Content-Length\", fileContent.length);\n\n// Attach the file content as the request body\nreq.setBody(fileContent);\n",
|
170 | 156 | "res": "let data = res.body ;\nbru.setEnvVar(\"main_file_version_id\", data.version_id);\nbru.setEnvVar(\"video_key\", data.key);"
|
|
182 | 168 | "name": "Step 4- Create a flow",
|
183 | 169 | "seq": 4,
|
184 | 170 | "request": {
|
185 |
| - "url": "{{baseURl}}/api/flows/", |
| 171 | + "url": "{{baseURL}}/api/flows/", |
186 | 172 | "method": "POST",
|
187 | 173 | "headers": [
|
188 | 174 | {
|
|
212 | 198 | "name": "Step 5- Upload additional file",
|
213 | 199 | "seq": 6,
|
214 | 200 | "request": {
|
215 |
| - "url": "{{baseURl}}/api/files/{{bucket_id}}/{{additional_file}}", |
| 201 | + "url": "{{baseURL}}/api/files/{{bucket_id}}/{{additional_file}}", |
216 | 202 | "method": "PUT",
|
217 | 203 | "headers": [],
|
218 | 204 | "params": [],
|
|
238 | 224 | "name": "Step 6- Publish",
|
239 | 225 | "seq": 7,
|
240 | 226 | "request": {
|
241 |
| - "url": "{{baseURl}}/api/deposits/video/{{video_id}}/actions/publish", |
| 227 | + "url": "{{baseURL}}/api/deposits/video/{{video_id}}/actions/publish", |
242 | 228 | "method": "POST",
|
243 | 229 | "headers": [
|
244 | 230 | {
|
|
269 | 255 | {
|
270 | 256 | "variables": [
|
271 | 257 | {
|
272 |
| - "name": "baseURl", |
| 258 | + "name": "baseURL", |
273 | 259 | "value": "https://localhost:5000/",
|
274 | 260 | "enabled": true,
|
275 | 261 | "secret": false,
|
|
0 commit comments