Skip to content

Commit

Permalink
Updated postman collection and environment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-barchi committed Feb 2, 2024
1 parent 9ed5e6b commit d1a5a96
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
75 changes: 39 additions & 36 deletions postman-collection/API Assistenza Fdr.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"info": {
"_postman_id": "8830a722-ba8b-4fed-a4e3-d16cf5f1fdae",
"_postman_id": "18129a93-8e28-4ae6-80f1-2181ef6b3676",
"name": "API Assistenza Fdr",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "11518494",
"_collection_link": "https://speeding-station-482612.postman.co/workspace/Nodo-doc~ec880f84-0a42-4ca9-bbd1-454d00bbe20c/collection/11518494-8830a722-ba8b-4fed-a4e3-d16cf5f1fdae?action=share&source=collection_link&creator=11518494"
"_exporter_id": "26451960"
},
"item": [
{
Expand All @@ -30,7 +29,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/psps/:psp?dateFrom=2023-09-13&dateTo=2023-09-15",
"raw": "{{ts-host}}/psps/:psp?dateFrom=2024-02-01&dateTo=2024-02-02",
"host": [
"{{ts-host}}"
],
Expand All @@ -41,17 +40,17 @@
"query": [
{
"key": "dateFrom",
"value": "2023-09-13"
"value": "2024-02-01"
},
{
"key": "dateTo",
"value": "2023-09-15"
"value": "2024-02-02"
}
],
"variable": [
{
"key": "psp",
"value": "nodo-doc-dev"
"value": "60000000001"
}
]
}
Expand All @@ -64,7 +63,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/psps/:psp/iuv/:iuv?dateFrom=2023-09-13&dateTo=2023-09-15",
"raw": "{{ts-host}}/psps/:psp/iuv/:iuv?dateFrom=2024-01-30&dateTo=2024-02-02",
"host": [
"{{ts-host}}"
],
Expand All @@ -77,21 +76,21 @@
"query": [
{
"key": "dateFrom",
"value": "2023-09-13"
"value": "2024-01-30"
},
{
"key": "dateTo",
"value": "2023-09-15"
"value": "2024-02-02"
}
],
"variable": [
{
"key": "psp",
"value": "nodo-doc-dev"
"value": "60000000001"
},
{
"key": "iuv",
"value": "91847041675818a"
"value": "81835854417758a"
}
]
}
Expand All @@ -104,7 +103,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/psps/:psp/iur/:iur?dateFrom=2023-07-22&dateTo=2023-07-27",
"raw": "{{ts-host}}/psps/:psp/iur/:iur?dateFrom=2024-01-29&dateTo=2024-02-02",
"host": [
"{{ts-host}}"
],
Expand All @@ -117,21 +116,21 @@
"query": [
{
"key": "dateFrom",
"value": "2023-07-22"
"value": "2024-01-29"
},
{
"key": "dateTo",
"value": "2023-07-27"
"value": "2024-02-02"
}
],
"variable": [
{
"key": "psp",
"value": "nodo-doc-dev"
"value": "60000000001"
},
{
"key": "iur",
"value": "4868482079b"
"value": "6049506481"
}
]
}
Expand All @@ -144,7 +143,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/organizations/:organization/flows/:flowName?dateFrom=2023-09-13&dateTo=2023-09-14",
"raw": "{{ts-host}}/organizations/:organization/flows/:flowName?dateFrom=2024-01-29&dateTo=2024-02-02",
"host": [
"{{ts-host}}"
],
Expand All @@ -157,21 +156,21 @@
"query": [
{
"key": "dateFrom",
"value": "2023-09-13"
"value": "2024-01-29"
},
{
"key": "dateTo",
"value": "2023-09-14"
"value": "2024-02-02"
}
],
"variable": [
{
"key": "organization",
"value": "00000000099"
"value": "15376371009"
},
{
"key": "flowName",
"value": "2023-09-14nodo-doc-dev-1694697113"
"value": "2024-02-0260000000001-17068800300"
}
]
}
Expand All @@ -184,7 +183,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/organizations/:organizationId/psps/:psp/flows/:flowName/revisions/:revision?dateFrom=2023-09-13&dateTo=2023-09-14",
"raw": "{{ts-host}}/organizations/:organizationId/psps/:psp/flows/:flowName/revisions/:revision?dateFrom=2024-01-29&dateTo=2024-02-02&fileType=json",
"host": [
"{{ts-host}}"
],
Expand All @@ -201,25 +200,29 @@
"query": [
{
"key": "dateFrom",
"value": "2023-09-13"
"value": "2024-01-29"
},
{
"key": "dateTo",
"value": "2023-09-14"
"value": "2024-02-02"
},
{
"key": "fileType",
"value": "json"
}
],
"variable": [
{
"key": "organizationId",
"value": "00000000099"
"value": "15376371009"
},
{
"key": "psp",
"value": "nodo-doc-dev"
"value": "60000000001"
},
{
"key": "flowName",
"value": "2023-09-14nodo-doc-dev-16946971130"
"value": "2024-02-0260000000001-17068810001"
},
{
"key": "revision",
Expand All @@ -236,7 +239,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/organizations/:organizationId/psps/:pspId/download?date=2023-09-14",
"raw": "{{ts-host}}/organizations/:organizationId/psps/:pspId/download?date=2024-02-02",
"host": [
"{{ts-host}}"
],
Expand All @@ -250,17 +253,17 @@
"query": [
{
"key": "date",
"value": "2023-09-14"
"value": "2024-02-02"
}
],
"variable": [
{
"key": "organizationId",
"value": "00000000099"
"value": "15376371009"
},
{
"key": "pspId",
"value": "nodo-doc-dev"
"value": "60000000001"
}
]
}
Expand All @@ -273,7 +276,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{ts-host}}/organizations/:organizationId/psps/:pspId/upload?date=2023-09-14",
"raw": "{{ts-host}}/organizations/:organizationId/psps/:pspId/upload?date=2024-02-02",
"host": [
"{{ts-host}}"
],
Expand All @@ -287,17 +290,17 @@
"query": [
{
"key": "date",
"value": "2023-09-14"
"value": "2024-02-02"
}
],
"variable": [
{
"key": "organizationId",
"value": "00000000099"
"value": "15376371009"
},
{
"key": "pspId",
"value": "nodo-doc-dev"
"value": "60000000001"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion postman-collection/Fdr TS - Dev.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"key": "subscription-key",
"value": "e06f1ca4a13e40ab963380dddf8dc84a",
"value": "",
"type": "default",
"enabled": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public FrResponse getRevisions(
} else {
flowEvents =
reStorageEvents.stream()
.filter(s -> "REQ".equals(s.getHttpType()))
.filter(s -> "INTERN".equals(s.getHttpType()))
.sorted(Comparator.comparing(FdrEventEntity::getCreated))
.toList();
}
Expand All @@ -302,9 +302,7 @@ public FrResponse getRevisions(
.add(new RevisionInfo(creation.getRevision().toString(), creation.getCreated())));
} else {
flowEvents.forEach(
creation ->
fdrs.getRevisions()
.add(new RevisionInfo(creation.getCreated(), creation.getCreated())));
creation -> fdrs.getRevisions().add(new RevisionInfo("NA", creation.getCreated())));
}

return FrResponse.builder().dateFrom(dateFrom).dateTo(dateTo).data(List.of(fdrs)).build();
Expand Down

0 comments on commit d1a5a96

Please sign in to comment.