diff --git a/postman.json b/postman.json index be4d415..d177b05 100644 --- a/postman.json +++ b/postman.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "aaf95d51-4e36-45f2-bfac-27119d8e6fce", + "_postman_id": "04fd3734-d675-4689-9b95-f99090255833", "name": "Transmorpher Server API v1", "description": "This file describes the Transmorpher Server API.\n\n- It includes examples for failed calls as well, until they are all covered in tests.\n- Filter for \": OK\" to only see correct API calls.\n \n\nConfiguration:\n\n- create a user on Transmorpher: `php artisan create:user postman postman@example.com http://amigor/transmorpher/notifications`\n- use the provided auth token and adjust the \"authToken\" variable\n- if you're using a domain different from \"transmorpher.test\", you will have to adjust the \"domain\" variable\n \n\nIf you want to use the collection with the already defined files, you will have to go to `Settings > General > Allow reading files outside working directory`, and enable the option.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", @@ -2129,7 +2129,7 @@ "pm.test(\"Image not found after deletion\", function () {\r", " pm.sendRequest(\r", " {\r", - " url: \"http://transmorpher.test/api/media/\" + pm.collectionVariables.get(\"imageIdentifier\") + \"/versions\",\r", + " url: pm.collectionVariables.get(\"domain\") + \"/api/v1/media/\" + pm.collectionVariables.get(\"imageIdentifier\") + \"/versions\",\r", " method: \"GET\",\r", " header: {\r", " \"Authorization\": \"Bearer \" + pm.collectionVariables.get(\"authToken\"),\r", @@ -2200,7 +2200,7 @@ "exec": [ "pm.sendRequest(", " {", - " url: pm.collectionVariables.replaceIn(\"{{domain}}\") + \"/api/v1/image/reserveUploadSlot\",", + " url: pm.collectionVariables.get(\"domain\") + \"/api/v1/image/reserveUploadSlot\",", " method: \"POST\",", " header: {", " \"Authorization\": \"Bearer \" + pm.collectionVariables.get(\"authToken\"),", @@ -2353,9 +2353,6 @@ } ], "request": { - "auth": { - "type": "noauth" - }, "method": "POST", "header": [ { @@ -2434,9 +2431,6 @@ } ], "request": { - "auth": { - "type": "noauth" - }, "method": "POST", "header": [ { @@ -2633,7 +2627,7 @@ "pm.test(\"Video not found after deletion\", function () {\r", " pm.sendRequest(\r", " {\r", - " url: \"http://transmorpher.test/api/media/\" + pm.collectionVariables.get(\"videoIdentifier\") + \"/versions\",\r", + " url: pm.collectionVariables.get(\"domain\") + \"/api/v1/media/\" + pm.collectionVariables.get(\"videoIdentifier\") + \"/versions\",\r", " method: \"GET\",\r", " header: {\r", " \"Authorization\": \"Bearer \" + pm.collectionVariables.get(\"authToken\"),\r", @@ -2704,7 +2698,7 @@ "exec": [ "pm.sendRequest(", " {", - " url: pm.collectionVariables.replaceIn(\"{{domain}}\") + \"/api/v1/video/reserveUploadSlot\",", + " url: pm.collectionVariables.get(\"domain\") + \"/api/v1/video/reserveUploadSlot\",", " method: \"POST\",", " header: {", " \"Authorization\": \"Bearer \" + pm.collectionVariables.get(\"authToken\"),", @@ -2716,7 +2710,6 @@ " \"raw\": JSON.stringify(", " {", " 'identifier': pm.collectionVariables.get(\"videoIdentifier\"),", - " 'callback_url': pm.collectionVariables.get(\"videoCallbackUrl\")", " }", " )", " }", @@ -2761,6 +2754,9 @@ } ], "request": { + "auth": { + "type": "noauth" + }, "method": "GET", "header": [ { @@ -2801,6 +2797,9 @@ } ], "request": { + "auth": { + "type": "noauth" + }, "method": "GET", "header": [ {