96 lines
2.2 KiB
JSON
96 lines
2.2 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "8faefdb8-734a-4262-a3b6-4d49e56ea901",
|
|
"name": "Storage Test S3",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"variable": [
|
|
{
|
|
"key": "base_url",
|
|
"value": "http://127.0.0.1:8000"
|
|
},
|
|
{
|
|
"key": "expires_in_minutes",
|
|
"value": "10"
|
|
},
|
|
{
|
|
"key": "path",
|
|
"value": ""
|
|
}
|
|
],
|
|
"item": [
|
|
{
|
|
"name": "Upload Test File",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"src": []
|
|
},
|
|
{
|
|
"key": "directory",
|
|
"value": "testing/manual",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "expires_in_minutes",
|
|
"value": "{{expires_in_minutes}}",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/storage-test/s3/upload",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"storage-test",
|
|
"s3",
|
|
"upload"
|
|
]
|
|
},
|
|
"description": "Sube un archivo al disco s3 y devuelve el path junto con una temporary_url."
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Generate Temporary URL",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/storage-test/s3/temporary-url?path={{path}}&expires_in_minutes={{expires_in_minutes}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"storage-test",
|
|
"s3",
|
|
"temporary-url"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "path",
|
|
"value": "{{path}}"
|
|
},
|
|
{
|
|
"key": "expires_in_minutes",
|
|
"value": "{{expires_in_minutes}}"
|
|
}
|
|
]
|
|
},
|
|
"description": "Genera una URL temporal para un path ya existente en S3."
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|