mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-12-23 12:15:11 +00:00
Compare commits
2 Commits
d83fcdf693
...
c90949de47
Author | SHA1 | Date | |
---|---|---|---|
|
c90949de47 | ||
|
7f43d27a79 |
|
@ -1,3 +1,3 @@
|
|||
<div class="copyright py-4 text-center text-white">
|
||||
<div class="container"><small>Copyright © Your Website 2021</small></div>
|
||||
<div class="container"><small>Copyright © Betterzon 2021</small></div>
|
||||
</div>
|
||||
|
|
|
@ -273,6 +273,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -284,7 +286,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
|
||||
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -338,6 +340,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -349,7 +353,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
|
||||
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -412,6 +416,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});\r",
|
||||
""
|
||||
],
|
||||
|
@ -435,7 +441,7 @@
|
|||
}
|
||||
},
|
||||
"url": {
|
||||
"raw": "https://backend.betterzon.xyz/crawlingstatus",
|
||||
"raw": "https://backend.betterzon.xyz/crawlingstatus?session_id={{session_id}}&session_key={{session_key}}",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"backend",
|
||||
|
@ -444,6 +450,16 @@
|
|||
],
|
||||
"path": [
|
||||
"crawlingstatus"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "session_id",
|
||||
"value": "{{session_id}}"
|
||||
},
|
||||
{
|
||||
"key": "session_key",
|
||||
"value": "{{session_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -561,6 +577,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});\r",
|
||||
""
|
||||
],
|
||||
|
@ -573,7 +591,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"vendor_id\": 7\r\n}",
|
||||
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -630,6 +648,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
" getNewFavId();\r",
|
||||
"});\r",
|
||||
"\r",
|
||||
|
@ -643,6 +663,8 @@
|
|||
" body: {\r",
|
||||
" mode: 'raw',\r",
|
||||
" raw: JSON.stringify({\r",
|
||||
" session_id: pm.collectionVariables.get(\"session_id\"),\r",
|
||||
" session_key: pm.collectionVariables.get(\"session_key\"),\r",
|
||||
" vendor_id: 7\r",
|
||||
" })\r",
|
||||
" }\r",
|
||||
|
@ -652,7 +674,7 @@
|
|||
"\r",
|
||||
" // Get the id of the entry\r",
|
||||
" pm.sendRequest({\r",
|
||||
" url: 'https://backend.betterzon.xyz/favoriteshops',\r",
|
||||
" url: ('https://backend.betterzon.xyz/favoriteshops?session_id=' + pm.collectionVariables.get(\"session_id\") + '&session_key=' + pm.collectionVariables.get(\"session_key\")),\r",
|
||||
" method: 'GET'\r",
|
||||
" }, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
|
@ -677,7 +699,7 @@
|
|||
}
|
||||
},
|
||||
"url": {
|
||||
"raw": "https://backend.betterzon.xyz/favoriteshops/4",
|
||||
"raw": "https://backend.betterzon.xyz/favoriteshops/{{created_favshop_id}}",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"backend",
|
||||
|
@ -686,7 +708,7 @@
|
|||
],
|
||||
"path": [
|
||||
"favoriteshops",
|
||||
"4"
|
||||
"{{created_favshop_id}}"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -851,6 +873,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -861,7 +885,7 @@
|
|||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://backend.betterzon.xyz/pricealarms",
|
||||
"raw": "https://backend.betterzon.xyz/pricealarms?session_id={{session_id}}&session_key={{session_key}}",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"backend",
|
||||
|
@ -870,6 +894,16 @@
|
|||
],
|
||||
"path": [
|
||||
"pricealarms"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "session_id",
|
||||
"value": "{{session_id}}"
|
||||
},
|
||||
{
|
||||
"key": "session_key",
|
||||
"value": "{{session_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -910,6 +944,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -921,7 +957,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"product_id\": 1,\r\n \"defined_price\": 23400\r\n}",
|
||||
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"product_id\": 1,\r\n \"defined_price\": 23400\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -978,6 +1014,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -989,7 +1027,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"alarm_id\": 12,\r\n \"defined_price\": 23400\r\n}",
|
||||
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"alarm_id\": 12,\r\n \"defined_price\": 23400\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -1202,6 +1240,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -1213,7 +1253,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"vendor_id\": 7,\r\n \"product_id\": 1,\r\n \"price_in_cents\": 123456\r\n}",
|
||||
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7,\r\n \"product_id\": 1,\r\n \"price_in_cents\": 123456\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -1513,7 +1553,7 @@
|
|||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\r\n \"username\": \"Testuser\",\r\n \"password\": \"Testpassword\",\r\n \"email\": \"Wrongemail\"\r\n}",
|
||||
"raw": "{\r\n \"username\": \"Testuser\",\r\n \"password\": \"never_gonna_give_you_up\",\r\n \"email\": \"Wrongemail\"\r\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
|
@ -1851,6 +1891,8 @@
|
|||
" }\r",
|
||||
"}, function (err, response) {\r",
|
||||
" pm.expect(err).to.not.be.ok;\r",
|
||||
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
|
||||
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
|
||||
"});"
|
||||
],
|
||||
"type": "text/javascript"
|
||||
|
@ -1861,7 +1903,7 @@
|
|||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://backend.betterzon.xyz/vendors/managed",
|
||||
"raw": "https://backend.betterzon.xyz/vendors/managed?session_id={{session_id}}&session_key={{session_key}}",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"backend",
|
||||
|
@ -1871,6 +1913,16 @@
|
|||
"path": [
|
||||
"vendors",
|
||||
"managed"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "session_id",
|
||||
"value": "{{session_id}}"
|
||||
},
|
||||
{
|
||||
"key": "session_key",
|
||||
"value": "{{session_key}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1915,6 +1967,14 @@
|
|||
{
|
||||
"key": "rand_user_id",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"key": "session_id",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"key": "session_key",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user