You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2024/01/26 09:39:26 UTC

(streampipes) branch dev updated: fix(#2434): Remove the trailing slash from the end point of the measurements (#2435)

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 0d3f3b5c6f fix(#2434): Remove the trailing slash from the end point of the measurements (#2435)
0d3f3b5c6f is described below

commit 0d3f3b5c6f61ab712a32fad3ab73b672d4bde299
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Fri Jan 26 10:39:19 2024 +0100

    fix(#2434): Remove the trailing slash from the end point of the measurements (#2435)
    
    * fix(#2434): Remove the trailing slash from the end point of the measurements
    
    * fix(#2434): Remove the trailing slash from the end point of the measurements
---
 .../src/main/java/org/apache/streampipes/ps/DataLakeResourceV4.java     | 2 +-
 .../streampipes/platform-services/src/lib/apis/datalake-rest.service.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/DataLakeResourceV4.java b/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/DataLakeResourceV4.java
index 93e6b26f4d..d1e892a035 100644
--- a/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/DataLakeResourceV4.java
+++ b/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/DataLakeResourceV4.java
@@ -149,7 +149,7 @@ public class DataLakeResourceV4 extends AbstractRestResource {
     }
   }
 
-  @GetMapping(path = "/measurements/", produces = MediaType.APPLICATION_JSON_VALUE)
+  @GetMapping(path = "/measurements", produces = MediaType.APPLICATION_JSON_VALUE)
   @Operation(summary = "Get a list of all measurement series", tags = {"Data Lake"},
       responses = {
           @ApiResponse(
diff --git a/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts b/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts
index 62b09226a8..aa2e62c1b2 100644
--- a/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts
+++ b/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts
@@ -56,7 +56,7 @@ export class DatalakeRestService {
     }
 
     getAllMeasurementSeries(): Observable<DataLakeMeasure[]> {
-        const url = this.dataLakeUrl + '/measurements/';
+        const url = this.dataLakeUrl + '/measurements';
         return this.http.get(url).pipe(
             map(response => {
                 return (response as any[]).map(p =>