Skip to content

Commit

Permalink
addProduktanbieter-Report
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeKrueger75 committed May 28, 2021
1 parent 1c7dec8 commit 760c911
Showing 1 changed file with 90 additions and 15 deletions.
105 changes: 90 additions & 15 deletions EUROPACE API Calls.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "d7ff4143-17e4-44c8-b91f-d45c290c7520",
"_postman_id": "cba2b859-8a71-4af2-b651-0212c6efe8ce",
"name": "EUROPACE API Calls",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
Expand Down Expand Up @@ -2541,7 +2541,7 @@
"name": "Vertriebs-Rohdaten",
"item": [
{
"name": "1. Rohdaten-Report erzeugen",
"name": "1. Vertriebs-Rohdaten-Report erzeugen",
"event": [
{
"listen": "prerequest",
Expand Down Expand Up @@ -2592,7 +2592,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"fromDay\": \"2019-01-01\"\n}"
"raw": "{\n \"fromDay\": \"2020-01-01\"\n}"
},
"url": {
"raw": "https://report.api.europace.de/rohdaten",
Expand All @@ -2609,30 +2609,38 @@
}
},
"response": []
},
}
]
},
{
"name": "Produktanbieter-Report",
"item": [
{
"name": "2. Report Status abfragen",
"name": "1. Produktanbieter-Report erzeugen",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"postman.setGlobalVariable(\"report-processing-id\", null);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Location is present in header\", function () {",
" pm.response.to.have.header(\"Location\");",
"});",
"postman.setGlobalVariable(\"path-to-reportfile\", pm.response.headers.get(\"Location\"));",
"",
"",
"",
"postman.setGlobalVariable(\"report-processing-id\", pm.response.headers.get(\"Location\"));",
""
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"followRedirects": false
},
"request": {
"auth": {
"type": "bearer",
Expand All @@ -2644,29 +2652,96 @@
}
]
},
"method": "GET",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-Trace-Id",
"value": "Mike",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fromDay\": \"2020-01-01\"\n}"
},
"url": {
"raw": "https://report.api.europace.de{{report-processing-id}}",
"raw": "https://report.api.europace.de/produktanbieter",
"protocol": "https",
"host": [
"report",
"api",
"europace",
"de{{report-processing-id}}"
"de"
],
"path": [
"produktanbieter"
]
}
},
"response": []
}
]
},
{
"name": "2. Report Status abfragen",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Location is present in header\", function () {",
" pm.response.to.have.header(\"Location\");",
"});",
"postman.setGlobalVariable(\"path-to-reportfile\", pm.response.headers.get(\"Location\"));",
"",
"",
"",
""
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"followRedirects": false
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "X-Trace-Id",
"value": "Mike",
"type": "text"
}
],
"url": {
"raw": "https://report.api.europace.de{{report-processing-id}}",
"protocol": "https",
"host": [
"report",
"api",
"europace",
"de{{report-processing-id}}"
]
}
},
"response": []
},
{
"name": "3. Report abholen",
"request": {
Expand Down

0 comments on commit 760c911

Please sign in to comment.