This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 4226d45  Set admin brokers content type. (#1573)
4226d45 is described below

commit 4226d45249ac938599e76057082dcaf60e07275c
Author: cckellogg <cckell...@gmail.com>
AuthorDate: Fri Apr 13 23:33:43 2018 -0700

    Set admin brokers content type. (#1573)
---
 .../src/main/java/org/apache/pulsar/broker/admin/v1/Brokers.java       | 3 +++
 .../src/main/java/org/apache/pulsar/broker/admin/v2/Brokers.java       | 3 +++
 2 files changed, 6 insertions(+)

diff --git 
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v1/Brokers.java 
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v1/Brokers.java
index c5d712c..3b7af34 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v1/Brokers.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v1/Brokers.java
@@ -22,8 +22,11 @@ import io.swagger.annotations.Api;
 import org.apache.pulsar.broker.admin.impl.BrokersBase;
 
 import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
 
 @Path("/brokers")
 @Api(value = "/brokers", description = "BrokersBase admin apis", tags = 
"brokers")
+@Produces(MediaType.APPLICATION_JSON)
 public class Brokers extends BrokersBase {
 }
diff --git 
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Brokers.java 
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Brokers.java
index 7a69bb8..68f974c 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Brokers.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Brokers.java
@@ -22,8 +22,11 @@ import io.swagger.annotations.Api;
 import org.apache.pulsar.broker.admin.impl.BrokersBase;
 
 import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
 
 @Path("/brokers")
 @Api(value = "/brokers", description = "BrokersBase admin apis", tags = 
"brokers")
+@Produces(MediaType.APPLICATION_JSON)
 public class Brokers extends BrokersBase {
 }

-- 
To stop receiving notification emails like this one, please contact
si...@apache.org.

Reply via email to