Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9f99eae

Browse files
Merge pull request #1156 from lowcoder-org/fix/hideapi
Hide flow api from swagger
2 parents f55fb7f + aa6a9f6 commit 9f99eae

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/misc/ApiFlowEndpoints.java‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package org.lowcoder.api.misc;
22

3-
import com.fasterxml.jackson.annotation.JsonProperty;
4-
import io.swagger.v3.oas.annotations.Operation;
5-
import jakarta.annotation.Nullable;
3+
import io.swagger.v3.oas.annotations.Hidden;
64
import org.lowcoder.infra.constant.NewUrl;
75
import org.lowcoder.infra.constant.Url;
86
import org.springframework.web.bind.annotation.PostMapping;
@@ -17,14 +15,7 @@
1715
@RequestMapping(value = {Url.FLOW_URL, NewUrl.FLOW_URL})
1816
public interface ApiFlowEndpoints
1917
{
20-
String TAG_SERVER_SETTING_MANAGEMENT = "Flow APIs";
21-
22-
@Operation(
23-
tags = TAG_SERVER_SETTING_MANAGEMENT,
24-
operationId = "flow",
25-
summary = "Call flow api",
26-
description = "Call flow api."
27-
)
18+
@Hidden
2819
@PostMapping
2920
Mono<String> flow(@RequestBody FlowRequest flowRequest);
3021
public record FlowRequest(String path,

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/npm/PrivateNpmRegistryEndpoint.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface PrivateNpmRegistryEndpoint {
2121
summary = "Get NPM registry Metadata",
2222
description = "Retrieve the metadata of private NPM registry package within Lowcoder."
2323
)
24-
@GetMapping("/registry/{name}")
24+
// @GetMapping("/registry/{name}")
2525
public Mono<ResponseEntity<Resource>> getNpmPackageMeta(@PathVariable String name);
2626

2727
@Operation(
@@ -30,6 +30,6 @@ public interface PrivateNpmRegistryEndpoint {
3030
summary = "Get NPM registry asset",
3131
description = "Retrieve the asset of private NPM registry package within Lowcoder."
3232
)
33-
@GetMapping("/package/{path}")
33+
// @GetMapping("/package/{path}")
3434
public Mono<ResponseEntity<Resource>> getNpmPackageAsset(@PathVariable String path);
3535
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /