From d1b85e7f3f2abe86f26869a90eaedcfcbbd785ab Mon Sep 17 00:00:00 2001 From: Andrii Shvaika Date: Wed, 22 Apr 2026 14:41:41 +0300 Subject: [PATCH] feat(iot-hub): add getPublishedVersion and getLatestVersion API methods --- ui-ngx/src/app/core/http/iot-hub-api.service.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ui-ngx/src/app/core/http/iot-hub-api.service.ts b/ui-ngx/src/app/core/http/iot-hub-api.service.ts index 15be07599a..d56d7792ea 100644 --- a/ui-ngx/src/app/core/http/iot-hub-api.service.ts +++ b/ui-ngx/src/app/core/http/iot-hub-api.service.ts @@ -114,6 +114,20 @@ export class IotHubApiService { ); } + public getPublishedVersion(itemId: string, config?: IotHubRequestConfig): Observable { + return this.http.get( + `${this.baseUrl}/api/items/${itemId}/published`, + { params: this.buildParams(config) } + ); + } + + public getLatestVersion(itemId: string, config?: IotHubRequestConfig): Observable { + return this.http.get( + `${this.baseUrl}/api/items/${itemId}/latest`, + { params: this.buildParams(config) } + ); + } + public getVersionReadme(versionId: string, config?: IotHubRequestConfig): Observable { return this.http.get(`${this.baseUrl}/api/versions/${versionId}/readme`, { params: this.buildParams(config),