Skip to content

Commit ea82a11

Browse files
committed
Adding query search params
Updating 2 api endpoints to reflect support for query search parameters dateStart and dateEnd when retrieving License report data
1 parent 4099330 commit ea82a11

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

specs/Data-Gateway.json

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,28 @@
7373
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$",
7474
"type": "string"
7575
}
76+
},
77+
"dateStart": {
78+
"description": "Date string to narrow records selection to those created on or after that date.",
79+
"in": "query",
80+
"name": "dateStart",
81+
"required": false,
82+
"schema": {
83+
"example": "2025-01-01T00:00:00Z",
84+
"format": "date-time",
85+
"type": "string"
86+
}
87+
},
88+
"dateEnd": {
89+
"description": "Date string to narrow records selection to those created before or on that date.",
90+
"in": "query",
91+
"name": "dateEnd",
92+
"required": false,
93+
"schema": {
94+
"example": "2025-02-05T23:59:59Z",
95+
"format": "date-time",
96+
"type": "string"
97+
}
7698
}
7799
},
78100
"responses": {
@@ -891,7 +913,7 @@
891913
},
892914
"description": "Collects data from the various SHI Lab products and makes it available in a standardized way.",
893915
"title": "SHI Data Gateway",
894-
"version": "2.1.0"
916+
"version": "2.1.1"
895917
},
896918
"openapi": "3.0.0",
897919
"paths": {
@@ -1077,8 +1099,16 @@
10771099
},
10781100
"/Api/LicenseReport/Correlation": {
10791101
"get": {
1080-
"description": "Retrieves the list of correlation records for the authenticated tenant. Correlation records store the metadata for a specific license report.\n\nThis endpoint requires the `LicenseReport.Read`, `LicenseReport.Read.All`, `LicenseReport.ReadWrite`, or `LicenseReport.ReadWrite.All` scope (permission).",
1102+
"description": "Retrieves the list of correlation records for the authenticated tenant. Can use filters targeting creation date to limit results. Correlation records store the metadata for a specific license report.\n\nThis endpoint requires the `LicenseReport.Read`, `LicenseReport.Read.All`, `LicenseReport.ReadWrite`, or `LicenseReport.ReadWrite.All` scope (permission).",
10811103
"operationId": "/Api/LicenseReport/Correlation/Get",
1104+
"parameters": [
1105+
{
1106+
"$ref": "#/components/parameters/dateStart"
1107+
},
1108+
{
1109+
"$ref": "#/components/parameters/dateEnd"
1110+
}
1111+
],
10821112
"responses": {
10831113
"200": {
10841114
"content": {
@@ -1133,11 +1163,17 @@
11331163
},
11341164
"/Api/LicenseReport/Correlation/Tenant/{tenantId}": {
11351165
"get": {
1136-
"description": "Retrieves the list of correlation records for the specified tenant. Correlation records store the metadata for a specific license report.\n\nThis endpoint requires the `LicenseReport.Read.All`, or `LicenseReport.ReadWrite.All` scope (permission). This endpoint is also only accessible form the `SHI` and `SHI Lab` tenants. End user access is restricted.",
1166+
"description": "Retrieves the list of correlation records for the specified tenant. Can use filters targeting creation date to limit results. Correlation records store the metadata for a specific license report.\n\nThis endpoint requires the `LicenseReport.Read.All`, or `LicenseReport.ReadWrite.All` scope (permission). This endpoint is also only accessible form the `SHI` and `SHI Lab` tenants. End user access is restricted.",
11371167
"operationId": "/Api/LicenseReport/Correlation/Tenant/:tenantId/Get",
11381168
"parameters": [
11391169
{
11401170
"$ref": "#/components/parameters/tenantId"
1171+
},
1172+
{
1173+
"$ref": "#/components/parameters/dateStart"
1174+
},
1175+
{
1176+
"$ref": "#/components/parameters/dateEnd"
11411177
}
11421178
],
11431179
"responses": {

src/dataGateway/TypeScript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shi-corp/sdk-data-gateway",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"type": "module",
55
"main": "bin/index.js",
66
"description": "SDK client used to interface with the SHI Data Gateway service.",

0 commit comments

Comments
 (0)