pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mme...@apache.org
Subject [pulsar] branch master updated: Add document for uploading namespace API (#3445)
Date Sun, 03 Feb 2019 17:11:24 GMT
This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new a4359d2  Add document for uploading namespace API (#3445)
a4359d2 is described below

commit a4359d293736bc52d4d3038c3d5aef086c070c69
Author: Like <like_0903@163.com>
AuthorDate: Mon Feb 4 01:11:19 2019 +0800

    Add document for uploading namespace API (#3445)
---
 site2/docs/admin-api-namespaces.md | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/site2/docs/admin-api-namespaces.md b/site2/docs/admin-api-namespaces.md
index bb08f70..f2cd929 100644
--- a/site2/docs/admin-api-namespaces.md
+++ b/site2/docs/admin-api-namespaces.md
@@ -621,15 +621,22 @@ You can unload a namespace, or a [namespace bundle](reference-terminology.md#nam
 
 #### pulsar-admin
 
-Use the [`unload`](reference-pulsar-admin.md#namespaces-unload) subcommand of the [`namespaces`](reference-pulsar-admin.md#namespaces)
command.
+Use the [`unload`](reference-pulsar-admin.md#unload) subcommand of the [`namespaces`](reference-pulsar-admin.md#namespaces)
command.
 
-##### Example
+###### CLI
 
 ```shell
 $ pulsar-admin namespaces unload my-tenant/my-ns
 ```
 
-#### REST API
+###### REST
 
-#### Java
+```
+{@inject: endpoint|PUT|/admin/v2/namespaces/{tenant}/{namespace}/unload|operation/unloadNamespace}
+```
+
+###### Java
 
+```java
+admin.namespaces().unload(namespace)
+```


Mime
View raw message