Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/postman auth #81

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions postman.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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\"),",
Expand Down Expand Up @@ -2353,9 +2353,6 @@
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
Expand Down Expand Up @@ -2434,9 +2431,6 @@
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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\"),",
Expand All @@ -2716,7 +2710,6 @@
" \"raw\": JSON.stringify(",
" {",
" 'identifier': pm.collectionVariables.get(\"videoIdentifier\"),",
" 'callback_url': pm.collectionVariables.get(\"videoCallbackUrl\")",
" }",
" )",
" }",
Expand Down Expand Up @@ -2761,6 +2754,9 @@
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
{
Expand Down Expand Up @@ -2801,6 +2797,9 @@
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
{
Expand Down