{"info":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","description":"<html><head></head><body><p>API que proveé servicios de conversión para archivos de video.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"574469","collectionId":"402d73e6-27ba-401d-831b-3834ea2a1876","publishedId":"2s9YR85Z9H","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-17T22:52:41.000Z"},"item":[{"name":"Autenticación","item":[{"name":"Signup","id":"0b7c48d8-eae3-4f33-b17d-3b4f77e863e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"{{username}}\",\n  \"email\": \"{{username}}@example.com\",\n  \"password1\": \"{{username}}\",\n  \"password2\": \"{{username}}\"\n}\n","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/auth/signup","description":"<p>Llamado que permite crear una cuenta de usuario, con los campos <strong>usuario</strong>, <strong>correo electrónico</strong> y<br /><strong>contraseña</strong>.</p>\n<p><strong>Parametros de entrada</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>Texto. Nombre de usuario</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Texto. Correo electrónico del usuario</td>\n</tr>\n<tr>\n<td>password</td>\n<td>Texto. Contraseña del usuario</td>\n</tr>\n<tr>\n<td>password2</td>\n<td>Texto. Confirmación de la contraseña</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Respuestas</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Código</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>201</td>\n<td>Created - Usuario creado correctamente</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request - El usuario ya está registrado o hay errores en los datos proporcionados</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}},"urlObject":{"path":["api","auth","signup"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"7be6a719-a877-4709-bad9-48b53a24474c","name":"Succesful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"example_user\",\n  \"email\": \"example@example.com\",\n  \"password1\": \"example_password\",\n  \"password2\": \"example_password\"\n}\n","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Tue, 17 Oct 2023 23:12:40 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"42"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account successfully created\"\n}"},{"id":"9ddb0a4e-8bf9-4607-b80f-1e6e5d1c6086","name":"Validation Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"example_user\",\n  \"email\": \"example@example.com\",\n  \"password1\": \"example_password\",\n  \"password2\": \"example_password\"\n}\n","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:23:38 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"35"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Username already taken\"\n}"}],"_postman_id":"0b7c48d8-eae3-4f33-b17d-3b4f77e863e8"},{"name":"Login","event":[{"listen":"test","script":{"id":"4e3b0a22-21cf-46dc-99e8-1b7acaffec76","exec":["var response = JSON.parse(responseBody)\r","pm.environment.set(\"token\", response['access_token']);\r","\r","var tokens = pm.environment.get(\"tokens\");\r","\r","// If tokens variable is not defined in the environment, initialize it as an empty array\r","if (!tokens) {\r","    tokens = [];\r","} else {\r","    // Parse the existing tokens from the environment variable\r","    tokens = JSON.parse(tokens);\r","}\r","\r","\r","tokens.push(response['access_token']);\r","pm.environment.set(\"tokens\", JSON.stringify(tokens));\r","\r","\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Access token is not empty\", function () {\r","    var jsonData = pm.response.json();\r","    pm.expect(jsonData.access_token).to.exist.and.to.be.a('string').and.to.not.be.empty;\r","});\r","\r","// Save the access_token to a variable called token\r","pm.test(\"Save access_token to variable\", function() {\r","    var jsonData = pm.response.json();\r","    pm.collectionVariables.set(\"token\", jsonData.access_token);\r","});"],"type":"text/javascript"}}],"id":"500762ee-c7c5-4471-88a2-2f9ecdcc27c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"{{username}}","description":"<p>(Required) </p>\n"},{"key":"password","value":"{{username}}","description":"<p>(Required) </p>\n"}]},"url":"localhost:8000/api/auth/login","description":"<p>Inicia sesión en la aplicación para obtener un token de acceso.</p>\n<h3 id=\"párametros-entrada\"><strong>Párametros entrada</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Párametro</strong></th>\n<th><strong>Descripción</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>Texto. Corresponde al nombre de usuario utilizado durante la creación de usuario.</td>\n</tr>\n<tr>\n<td>password</td>\n<td>Texto. Corresponde a la contraseña de usuario utilizado durante la creación de usuario.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"respuestas\"><strong>Respuestas</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Código</th>\n<th>Descripción</th>\n<th>Contenido</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td><code>json { \"token\": \"[VALOR TOKEN]\" }</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td><code>json { \"message\": \"Usuario inválido\" }</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}},"urlObject":{"path":["api","auth","login"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"b686be7c-f5b0-42f5-954c-420ac5dce759","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"example_user","description":"(Required) "},{"key":"password","value":"example_password","description":"(Required) "}]},"url":"localhost:8000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 00:02:31 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"174"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJleGFtcGxlX3VzZXIiLCJleHAiOjE2OTc1ODkxNTR9.BVX57TVhishfvUaYZ-WqE1xoXXl39SF2nT0q4fzBev4\",\n    \"token_type\": \"bearer\"\n}"},{"id":"97caaa87-65c1-4ca7-9a18-2765c8109b2d","name":"Invalid Credentials","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"example_user3","description":"(Required) "},{"key":"password","value":"example_password","description":"(Required) "}]},"url":"localhost:8000/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:33:47 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"32"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Invalid credentials\"\n}"},{"id":"6c4a3f7d-c3be-4c9c-b5eb-ed21f15e2dc9","name":"Validation Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"example_user","description":"(Required) ","disabled":true},{"key":"password","value":"example_password","description":"(Required) ","disabled":true}]},"url":{"raw":"localhost:8000/api/auth/login?username=NotValid&password=NotValid","host":["localhost:8000"],"path":["api","auth","login"],"query":[{"key":"username","value":"NotValid"},{"key":"password","value":"NotValid"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:24:01 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"274"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": [\n        {\n            \"type\": \"missing\",\n            \"loc\": [\n                \"body\",\n                \"username\"\n            ],\n            \"msg\": \"Field required\",\n            \"input\": null,\n            \"url\": \"https://errors.pydantic.dev/2.4/v/missing\"\n        },\n        {\n            \"type\": \"missing\",\n            \"loc\": [\n                \"body\",\n                \"password\"\n            ],\n            \"msg\": \"Field required\",\n            \"input\": null,\n            \"url\": \"https://errors.pydantic.dev/2.4/v/missing\"\n        }\n    ]\n}"}],"_postman_id":"500762ee-c7c5-4471-88a2-2f9ecdcc27c2"}],"id":"191d7009-e0e8-48d3-aeaf-ca66374d69a4","description":"<p>Todos los llamados relacionados con autenticación en el sistema.</p>\n","_postman_id":"191d7009-e0e8-48d3-aeaf-ca66374d69a4","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}}},{"name":"Tareas","item":[{"name":"Tareas por id","item":[{"name":"Get Task","id":"9d6ed1e5-ed77-4320-aa71-2f79187f3c28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/api/tasks/:id_task","description":"<p>Permite recuperar la información de una tarea en la aplicación. El usuario requiere autorización.</p>\n<p><strong>Parametros de entrada</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id_task</td>\n<td>Int. ID de la task a consultar</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Respuestas</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Código</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>404</td>\n<td>Not Found - No se encontro un task con el ID especificado</td>\n</tr>\n<tr>\n<td>200</td>\n<td>OK - La solicitud se completó correctamente. La respuesta contiene los detalles de la tarea solicitada.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Parametros de Respuesta</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Identificador único de la tarea.</td>\n</tr>\n<tr>\n<td>original_format</td>\n<td>Formato original del archivo de la tarea.</td>\n</tr>\n<tr>\n<td>target_format</td>\n<td>Formato al que se ha convertido el archivo.</td>\n</tr>\n<tr>\n<td>status</td>\n<td>Estado actual de la tarea.</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>Fecha y hora de creación de la tarea.</td>\n</tr>\n<tr>\n<td>original_file_url</td>\n<td>URL para acceder al archivo original de la tarea.</td>\n</tr>\n<tr>\n<td>processed_file_url</td>\n<td>URL para acceder al archivo convertido de la tarea.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","tasks",":id_task"],"host":["localhost:8000"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"6","key":"id_task"}]}},"response":[{"id":"896f9049-59f6-4094-b96d-8720b90d5259","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8000/api/tasks/:id_task","host":["localhost:8000"],"path":["api","tasks",":id_task"],"variable":[{"key":"id_task","value":"6","description":"(Required) "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:27:57 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"249"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"original_format\": \"mp4\",\n    \"target_format\": \"avi\",\n    \"status\": \"processed\",\n    \"created_at\": \"2023-10-18T00:02:48.944912\",\n    \"original_file_url\": \"http://localhost:8000/files/original/6.mp4\",\n    \"processed_file_url\": \"http://localhost:8000/files/converted/6.avi\"\n}"},{"id":"b78a860e-c64e-471c-883c-195b182edea4","name":"Validation Error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8000/api/tasks/:id_task","host":["localhost:8000"],"path":["api","tasks",":id_task"],"variable":[{"key":"id_task","value":"500","description":"(Required) "}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:31:18 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"27"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Task not found\"\n}"}],"_postman_id":"9d6ed1e5-ed77-4320-aa71-2f79187f3c28"},{"name":"Delete Task","id":"76bc95d6-6551-4a82-8e05-2b1e84b3134d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/api/tasks/:id_task","description":"<p>Llamado que permite eliminar una tarea creada previamente. El usuario requiere autenticación.</p>\n<p><strong>Parametros de entrada</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id_task</td>\n<td>Int. ID de la task a eliminar</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Respuestas</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Código</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>404</td>\n<td>Not Found - No se encontro un task con el ID especificado</td>\n</tr>\n<tr>\n<td>200</td>\n<td>OK - La solicitud se completó correctamente. La respuesta contiene los detalles de la tarea solicitada.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","tasks",":id_task"],"host":["localhost:8000"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"1","key":"id_task"}]}},"response":[{"id":"7e9d23f4-2a5e-4cb7-9054-2cc9ddd1b77e","name":"Successful Response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"},{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8000/api/tasks/:id_task","host":["localhost:8000"],"path":["api","tasks",":id_task"],"variable":[{"key":"id_task","value":"<integer>","description":"(Required) "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"021daef7-c036-4a81-babd-de312c023b64","name":"Validation Error","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8000/api/tasks/:id_task","host":["localhost:8000"],"path":["api","tasks",":id_task"],"variable":[{"key":"id_task","value":"700","description":"(Required) "}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:35:13 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"27"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Task not found\"\n}"}],"_postman_id":"76bc95d6-6551-4a82-8e05-2b1e84b3134d"}],"id":"3b7709e6-6192-4542-be05-f61451538bf6","_postman_id":"3b7709e6-6192-4542-be05-f61451538bf6","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}}},{"name":"Read Tasks","id":"508700ca-d857-4b88-b2b8-7ba97e1a5110","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/api/tasks?max=10&order=0","description":"<p>Consular tareas creadas por el usuario.</p>\n<h3 id=\"párametros-entrada\"><strong>Párametros entrada</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Párametro</strong></th>\n<th><strong>Descripción</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>max</td>\n<td>Numérico. Cantidad máxima de tareas a obtener.</td>\n</tr>\n<tr>\n<td>password</td>\n<td>Numérico. Orden de las tareas a partir del ID. (0) ascendente (1) descendente.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"respuestas\"><strong>Respuestas</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Código</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK - Se obtienen las tareas correctamente</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Unprocessable Entity - Error de validación de parámetros</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","tasks"],"host":["localhost:8000"],"query":[{"key":"max","value":"10"},{"key":"order","value":"0"}],"variable":[]}},"response":[{"id":"58efc149-35f5-4ebf-81c8-1061e7ff736d","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8000/api/tasks?max=10&order=0","host":["localhost:8000"],"path":["api","tasks"],"query":[{"key":"max","value":"10"},{"key":"order","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:28:35 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"1504"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"tasks\": [\n        {\n            \"id\": 2,\n            \"original_format\": \"mp4\",\n            \"target_format\": \"avi\",\n            \"status\": \"uploaded\",\n            \"created_at\": \"2023-10-17T23:17:10.023184\",\n            \"original_file_url\": \"http://localhost:8000/files/original/2.mp4\",\n            \"processed_file_url\": \"http://localhost:8000/files/converted/2.avi\"\n        },\n        {\n            \"id\": 3,\n            \"original_format\": \"mp4\",\n            \"target_format\": \"avi\",\n            \"status\": \"uploaded\",\n            \"created_at\": \"2023-10-17T23:23:36.253731\",\n            \"original_file_url\": \"http://localhost:8000/files/original/3.mp4\",\n            \"processed_file_url\": \"http://localhost:8000/files/converted/3.avi\"\n        },\n        {\n            \"id\": 4,\n            \"original_format\": \"mp4\",\n            \"target_format\": \"avi\",\n            \"status\": \"error\",\n            \"created_at\": \"2023-10-17T23:29:31.058700\",\n            \"original_file_url\": \"http://localhost:8000/files/original/4.mp4\",\n            \"processed_file_url\": \"http://localhost:8000/files/converted/4.avi\"\n        },\n        {\n            \"id\": 5,\n            \"original_format\": \"mp4\",\n            \"target_format\": \"avi\",\n            \"status\": \"error\",\n            \"created_at\": \"2023-10-17T23:40:30.995316\",\n            \"original_file_url\": \"http://localhost:8000/files/original/5.mp4\",\n            \"processed_file_url\": \"http://localhost:8000/files/converted/5.avi\"\n        },\n        {\n            \"id\": 6,\n            \"original_format\": \"mp4\",\n            \"target_format\": \"avi\",\n            \"status\": \"processed\",\n            \"created_at\": \"2023-10-18T00:02:48.944912\",\n            \"original_file_url\": \"http://localhost:8000/files/original/6.mp4\",\n            \"processed_file_url\": \"http://localhost:8000/files/converted/6.avi\"\n        },\n        {\n            \"id\": 39,\n            \"original_format\": \"mp4\",\n            \"target_format\": \"avi\",\n            \"status\": \"processed\",\n            \"created_at\": \"2023-10-18T02:25:28.902955\",\n            \"original_file_url\": \"http://localhost:8000/files/original/39.mp4\",\n            \"processed_file_url\": \"http://localhost:8000/files/converted/39.avi\"\n        }\n    ]\n}"},{"id":"d5895977-2523-4e62-b81e-7a2f2e537d1c","name":"Validation Error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"localhost:8000/api/tasks?max=-1","host":["localhost:8000"],"path":["api","tasks"],"query":[{"key":"max","value":"-1"},{"key":"order","value":"0","disabled":true}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:27:03 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"204"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": [\n        {\n            \"type\": \"greater_than_equal\",\n            \"loc\": [\n                \"query\",\n                \"max\"\n            ],\n            \"msg\": \"Input should be greater than or equal to 1\",\n            \"input\": \"-1\",\n            \"ctx\": {\n                \"ge\": 1\n            },\n            \"url\": \"https://errors.pydantic.dev/2.4/v/greater_than_equal\"\n        }\n    ]\n}"}],"_postman_id":"508700ca-d857-4b88-b2b8-7ba97e1a5110"},{"name":"Create Task","id":"847c9ebc-b674-491f-b659-0b131e8a6693","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","description":"<p>(Required) </p>\n","src":"/E:/Users/User/Downloads/world_-_2 (360p).mp4"},{"key":"newFormat","value":"avi","type":"text","description":"<p>(Required) </p>\n"}]},"url":"localhost:8000/api/tasks","description":"<p>Crear una nueva tarea.</p>\n<h3 id=\"párametros-entrada\"><strong>Párametros entrada</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Párametro</strong></th>\n<th><strong>Descripción</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>file</td>\n<td>Archivo. Archivo de entrada a convertir.</td>\n</tr>\n<tr>\n<td>newFormat</td>\n<td>Texto. Formato de conversión de salida.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"respuestas\"><strong>Respuestas</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Código</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK - Se crea la tarea correctamente</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request - Formato de archivo inválido</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","tasks"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"05e6caee-6eaa-4006-8d34-e365dd179b50","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","description":"(Required) ","src":"/C:/Users/sebastianul.SKYLINE2/OneDrive - Skyline Communications NV/Documents/ShareX/Screenshots/2021/2021-07/VPzqow8QNY.mp4"},{"key":"newFormat","value":"avi","type":"text","description":"(Required) "}]},"url":"localhost:8000/api/tasks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:26:17 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"39"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Task created successfully\"\n}"},{"id":"7c7bd858-a488-4587-8195-fc26e290908a","name":"Invalid format","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","description":"(Required) ","src":"/C:/Users/sebastianul.SKYLINE2/OneDrive - Skyline Communications NV/Documents/ShareX/Screenshots/2021/2021-07/2eNNYhbqia.png"},{"key":"newFormat","value":"avi","type":"text","description":"(Required) "}]},"url":"localhost:8000/api/tasks"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 18 Oct 2023 02:25:40 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"68"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Invalid format: png. Valid formats are: mp4, webm, avi.\"\n}"}],"_postman_id":"847c9ebc-b674-491f-b659-0b131e8a6693"}],"id":"35e12825-34a3-42a6-ab97-7d790f2068f0","description":"<p>Todos los llamados relacionados con el manejo de tareas del sistema.</p>\n","_postman_id":"35e12825-34a3-42a6-ab97-7d790f2068f0","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}}},{"name":"Archivos","item":[{"name":"Serve Original File","id":"a9fbda7d-d61d-4269-83ae-308f439a1917","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/files/original/<integer>.<string>","description":"<p>Permite descargar el archivo original de la conversión.<br />Uso exclusivo para pruebas.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}},"urlObject":{"path":["files","original","<integer>.<string>"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"f5e39376-2b3b-4fd7-8f79-dd6675049004","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/files/original/<integer>.<string>"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"fe04fcb3-e020-4574-b5ed-0b6e7f9cc576","name":"Validation Error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/files/original/<integer>.<string>"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\"\n    }\n  ]\n}"}],"_postman_id":"a9fbda7d-d61d-4269-83ae-308f439a1917"},{"name":"Serve Converted File","id":"174df1aa-6714-4a91-b1ea-16574f48803a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/files/converted/6.<string>","description":"<p>Permite descargar el archivo convertido.<br />Uso exclusivo para pruebas.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}},"urlObject":{"path":["files","converted","6.<string>"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"71396a08-015d-4ec5-9b2a-ca197cedf7cc","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/files/converted/<integer>.<string>"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"1ec4feb2-7832-48f1-a92b-5b771b8e396a","name":"Validation Error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"localhost:8000/files/converted/<integer>.<string>"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\"\n    },\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\"\n    }\n  ]\n}"}],"_postman_id":"174df1aa-6714-4a91-b1ea-16574f48803a"}],"id":"aad50db4-9d1f-48d2-8e17-4d00d7357de8","_postman_id":"aad50db4-9d1f-48d2-8e17-4d00d7357de8","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"402d73e6-27ba-401d-831b-3834ea2a1876","id":"402d73e6-27ba-401d-831b-3834ea2a1876","name":"Conversion Tool","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]}},"event":[{"listen":"prerequest","script":{"id":"1829a6fd-98d2-4af8-9e79-e8dd18ac47b9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"714478be-e483-4856-a0a5-a97b80999293","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"localhost:8000","type":"string"},{"key":"task_id","value":"<integer>","type":"any"},{"key":"original_format","value":"<string>","type":"any"},{"key":"target_format","value":"<string>","type":"any"},{"key":"token","value":"<string>"}]}