Skip to content

Commit

Permalink
Postman removed the empty api url path param from all URLs. An empty …
Browse files Browse the repository at this point in the history
…path param looks like a double slash in the url "//".

This empty path element makes no difference, and the API works with and without it. The latest version of Postman removes it automatically.
I am pretty sure that this extra slash is actually a bug in the IEC front-end code, and shoult not be used in the API.
  • Loading branch information
maorcc committed Jun 12, 2024
1 parent 3cf77d7 commit adadef1
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions IEC.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/outages/accounts",
"raw": "https://iecapi.iec.co.il/api/outages/accounts",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -618,7 +618,6 @@
"il"
],
"path": [
"",
"api",
"outages",
"accounts"
Expand Down Expand Up @@ -705,7 +704,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/customer",
"raw": "https://iecapi.iec.co.il/api/customer",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -714,7 +713,6 @@
"il"
],
"path": [
"",
"api",
"customer"
]
Expand Down Expand Up @@ -804,7 +802,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/customer/contract/{{bp_number}}",
"raw": "https://iecapi.iec.co.il/api/customer/contract/{{bp_number}}",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -813,7 +811,6 @@
"il"
],
"path": [
"",
"api",
"customer",
"contract",
Expand Down Expand Up @@ -990,7 +987,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/ElectricBillsDrawers/ElectricBills/{{contract_id}}/{{bp_number}}",
"raw": "https://iecapi.iec.co.il/api/ElectricBillsDrawers/ElectricBills/{{contract_id}}/{{bp_number}}",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -999,7 +996,6 @@
"il"
],
"path": [
"",
"api",
"ElectricBillsDrawers",
"ElectricBills",
Expand Down Expand Up @@ -1077,7 +1073,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/billingCollection/invoices/{{contract_id}}/{{bp_number}}",
"raw": "https://iecapi.iec.co.il/api/billingCollection/invoices/{{contract_id}}/{{bp_number}}",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -1086,7 +1082,6 @@
"il"
],
"path": [
"",
"api",
"billingCollection",
"invoices",
Expand Down Expand Up @@ -1196,7 +1191,7 @@
}
},
"url": {
"raw": "https://iecapi.iec.co.il//api/Consumption/RemoteReadingRange/{{contract_id}}",
"raw": "https://iecapi.iec.co.il/api/Consumption/RemoteReadingRange/{{contract_id}}",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -1205,7 +1200,6 @@
"il"
],
"path": [
"",
"api",
"Consumption",
"RemoteReadingRange",
Expand Down Expand Up @@ -1282,7 +1276,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/Device/LastMeterReading/{{contract_id}}/{{bp_number}}",
"raw": "https://iecapi.iec.co.il/api/Device/LastMeterReading/{{contract_id}}/{{bp_number}}",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -1291,7 +1285,6 @@
"il"
],
"path": [
"",
"api",
"Device",
"LastMeterReading",
Expand Down Expand Up @@ -1369,7 +1362,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/Device/{{contract_id}}/{{device_id}}",
"raw": "https://iecapi.iec.co.il/api/Device/{{contract_id}}/{{device_id}}",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -1378,7 +1371,6 @@
"il"
],
"path": [
"",
"api",
"Device",
"{{contract_id}}",
Expand Down Expand Up @@ -1455,7 +1447,7 @@
}
],
"url": {
"raw": "https://iecapi.iec.co.il//api/Device/type/{{bp_number}}/{{contract_id}}/false",
"raw": "https://iecapi.iec.co.il/api/Device/type/{{bp_number}}/{{contract_id}}/false",
"protocol": "https",
"host": [
"iecapi",
Expand All @@ -1464,7 +1456,6 @@
"il"
],
"path": [
"",
"api",
"Device",
"type",
Expand Down

0 comments on commit adadef1

Please sign in to comment.