Skip to content

Commit ce0c403

Browse files
committed
feat:
1. compatible NamespaceOpenApiService interface 2. add CHANGES.md
1 parent 2e0e46f commit ce0c403

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Apollo Java 2.4.0
66

77
------------------
88
* [Fix the Cannot enhance @Configuration bean definition issue](https://github.com/apolloconfig/apollo-java/pull/82)
9+
* [Feature openapi query namespace support not fill item](https://github.com/apolloconfig/apollo-java/pull/83)
910

1011
------------------
11-
All issues and pull requests are [here](https://github.com/apolloconfig/apollo-java/milestone/4?closed=1)
12+
All issues and pull requests are [here](https://github.com/apolloconfig/apollo-java/milestone/4?closed=1)

apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/api/NamespaceOpenApiService.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,30 @@
2626
*/
2727
public interface NamespaceOpenApiService {
2828

29+
/**
30+
* @deprecated use {@link NamespaceOpenApiService#getNamespace(String, String, String, String, boolean)} instead
31+
*/
32+
default OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName) {
33+
return getNamespace(appId, env, clusterName, namespaceName, true);
34+
}
35+
36+
/**
37+
* Retrieves a single namespace
38+
* @since 2.4.0
39+
*/
2940
OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName, boolean fillItemDetail);
3041

42+
/**
43+
* @deprecated use {@link NamespaceOpenApiService#getNamespaces(String, String, String, boolean)} instead
44+
*/
45+
default List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName) {
46+
return getNamespaces(appId, env, clusterName, true);
47+
}
48+
49+
/**
50+
* Retrieves a list namespaces
51+
* @since 2.4.0
52+
*/
3153
List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName, boolean fillItemDetail);
3254

3355
OpenAppNamespaceDTO createAppNamespace(OpenAppNamespaceDTO appNamespaceDTO);

0 commit comments

Comments
 (0)