Skip to content

Commit

Permalink
feat:
Browse files Browse the repository at this point in the history
1. compatible NamespaceOpenApiService interface
2. add CHANGES.md
  • Loading branch information
youngzil committed Oct 17, 2024
1 parent 2e0e46f commit ce0c403
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Apollo Java 2.4.0

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

------------------
All issues and pull requests are [here](https://github.com/apolloconfig/apollo-java/milestone/4?closed=1)
All issues and pull requests are [here](https://github.com/apolloconfig/apollo-java/milestone/4?closed=1)
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,30 @@
*/
public interface NamespaceOpenApiService {

/**
* @deprecated use {@link NamespaceOpenApiService#getNamespace(String, String, String, String, boolean)} instead
*/
default OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName) {
return getNamespace(appId, env, clusterName, namespaceName, true);
}

/**
* Retrieves a single namespace
* @since 2.4.0
*/
OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName, boolean fillItemDetail);

/**
* @deprecated use {@link NamespaceOpenApiService#getNamespaces(String, String, String, boolean)} instead
*/
default List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName) {
return getNamespaces(appId, env, clusterName, true);
}

/**
* Retrieves a list namespaces
* @since 2.4.0
*/
List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName, boolean fillItemDetail);

OpenAppNamespaceDTO createAppNamespace(OpenAppNamespaceDTO appNamespaceDTO);
Expand Down

0 comments on commit ce0c403

Please sign in to comment.