Skip to content

Commit 88ecd3c

Browse files
Thomasludomikula
Thomas
authored andcommitted
change bundle elements api url format
1 parent 77d2ca2 commit 88ecd3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/bundle/BundleController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Mono<ResponseView<List<BundleInfoView>>> getRecycledBundles() {
8989
* get all files under bundle
9090
*/
9191
@Override
92-
public Mono<ResponseView<List<?>>> getElements(@RequestParam(value = "id", required = false) String bundleId,
92+
public Mono<ResponseView<List<?>>> getElements(@PathVariable String bundleId,
9393
@RequestParam(value = "applicationType", required = false) ApplicationType applicationType) {
9494
return bundleApiService.getElements(bundleId, applicationType)
9595
.collectList()

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/bundle/BundleEndpoints.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public interface BundleEndpoints
119119
summary = "Get Bundle contents",
120120
description = "Retrieve the contents of an Bundle Bundle within Lowcoder, including Bundles."
121121
)
122-
@GetMapping("/elements")
123-
public Mono<ResponseView<List<?>>> getElements(@RequestParam(value = "id", required = false) String bundleId,
122+
@GetMapping("/{bundleId}/elements")
123+
public Mono<ResponseView<List<?>>> getElements(@PathVariable String bundleId,
124124
@RequestParam(value = "applicationType", required = false) ApplicationType applicationType);
125125

126126
@Operation(

0 commit comments

Comments
 (0)