incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r1196472 - in /incubator/ambari/trunk: ./ client/src/main/java/org/apache/ambari/common/rest/entities/ controller/src/main/java/org/apache/ambari/controller/rest/config/ controller/src/main/java/org/apache/ambari/controller/rest/resources/
Date Wed, 02 Nov 2011 06:52:52 GMT
Author: eyang
Date: Wed Nov  2 06:52:51 2011
New Revision: 1196472

URL: http://svn.apache.org/viewvc?rev=1196472&view=rev
Log:
AMBARI-120. Fixed REST resource annotation bugs. (Eric Yang)
AMBARI-121. Added examples for returning REST resources. (Eric Yang)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/Node.java
    incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/config/Examples.java
    incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClustersResource.java
    incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java
    incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/StacksResource.java
    incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/WadlResource.java

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Wed Nov  2 06:52:51 2011
@@ -2,6 +2,10 @@ Ambari Change log
 
 Release 0.1.0 - unreleased
 
+  AMBARI-120. Fixed REST resource annotation bugs. (Eric Yang)
+
+  AMBARI-121. Added examples for returning REST resources. (Eric Yang)
+
   AMBARI-119. Enhance agent to support workDirComponent. (Eric Yang)
 
   AMBARI-118. Added safe guard mechanism to prevent agent crash on 

Modified: incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/Node.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/Node.java?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/Node.java
(original)
+++ incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/Node.java
Wed Nov  2 06:52:51 2011
@@ -65,7 +65,7 @@ import javax.xml.bind.annotation.XmlType
     "nodeAttributes",
     "nodeState"
 })
-@XmlRootElement(name = "Nodes")
+@XmlRootElement(name = "Node")
 public class Node {
     
     @XmlAttribute(required = true)

Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/config/Examples.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/config/Examples.java?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/config/Examples.java
(original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/config/Examples.java
Wed Nov  2 06:52:51 2011
@@ -29,6 +29,7 @@ import org.apache.ambari.common.rest.ent
 import org.apache.ambari.common.rest.entities.NodeState;
 import org.apache.ambari.common.rest.entities.RoleToNodes;
 import org.apache.ambari.common.rest.entities.Stack;
+import org.apache.ambari.common.rest.entities.StackInformation;
 
 public class Examples {
 	public static final ClusterInformation CLUSTER_INFORMATION = new ClusterInformation();
@@ -38,6 +39,8 @@ public class Examples {
     public static final List<RoleToNodes> rnm = new ArrayList<RoleToNodes>();
     public static final List<Node> NODES = new ArrayList<Node>();
     public static final Stack STACK = new Stack();
+    public static final StackInformation STACK_INFORMATION = new StackInformation();
+    public static final Node NODE = new Node();
 	
 	static {
 		CLUSTER_DEFINITION.setName("example-name");
@@ -78,23 +81,28 @@ public class Examples {
 			CLUSTER_STATE.setDeployTime(new Date());
 		} catch (Exception e) {
 		}
-        Node node = new Node();
-        node.setName("localhost");
+        NODE.setName("localhost");
         NodeAttributes nodeAttributes = new NodeAttributes();
         nodeAttributes.setCPUCores((short)1);
         nodeAttributes.setDISKUnits((short)4);
         nodeAttributes.setRAMInGB(6);
-        node.setNodeAttributes(nodeAttributes);
+        NODE.setNodeAttributes(nodeAttributes);
         NodeState nodeState = new NodeState();
         nodeState.setClusterName("cluster-123");
         List<String> roleNames = new ArrayList<String>();
         roleNames.add("jobtracker-role");
         roleNames.add("namenode-role");
         nodeState.setNodeRoleNames(roleNames);
-        node.setNodeState(nodeState);
-        NODES.add(node);
+        NODE.setNodeState(nodeState);
+        NODES.add(NODE);
         
         STACK.setName("stack");
         STACK.setRevision("1");
+        STACK_INFORMATION.setName("HDP");
+        STACK_INFORMATION.setRevision("1");
+        List<String> components = new ArrayList<String>();
+        components.add("hdfs");
+        components.add("mapreduce");
+        STACK_INFORMATION.setComponent(components);
 	}
 }

Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClustersResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClustersResource.java?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClustersResource.java
(original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClustersResource.java
Wed Nov  2 06:52:51 2011
@@ -42,13 +42,14 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
 
 /**
  * Clusters Resource represents the collection of Hadoop clusters in a data center
  */
-@Path(value = "/clusters")
+@Path("clusters")
 public class ClustersResource {
     
     /** 
@@ -58,11 +59,11 @@ public class ClustersResource {
      *         "ACTIVE"        : All the active state clusters
      *         "INACTIVE"      : All the inactive state clusters
      *         "ATTIC"         : All the retired i.e. ATTIC state clusters
-     *  @response.representation.200.doc Return ClusterInformation
-     *  @response.representation.200.mediaType application/json
-     *  @response.representation.200.example
-     *  @response.representation.204.doc No cluster defined
-     *  @response.representation.500.doc Internal Server Error
+     *  @response.representation.200.doc       Return ClusterInformation
+     *  @response.representation.200.mediaType application/json application/xml
+     *  @response.representation.200.example   {@link Examples#CLUSTER_INFORMATION}
+     *  @response.representation.204.doc       No cluster defined
+     *  @response.representation.500.doc       Internal Server Error
      *  @param  state      The state of the cluster
      *  @param  search     Optional search expression to return list of matching 
      *                     clusters
@@ -71,8 +72,9 @@ public class ClustersResource {
      *  @throws Exception  throws Exception 
      */
     @GET
-    @Produces({"application/json", "application/xml"})
-    public List<ClusterInformation> getClusterList (
+    @Path("")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    public List<ClusterInformation> getClusterList(
                                  @DefaultValue("ALL") @QueryParam("state") String state,
                                  @DefaultValue("") @QueryParam("search") String search) throws
Exception {
         List<ClusterInformation> searchResults = null;
@@ -96,17 +98,17 @@ public class ClustersResource {
      * 
      *  @response.representation.200.doc        Get the definition & current state of
the specified Hadoop cluster
      *  @response.representation.200.mediaType  application/json
-     *  @response.representation.200.example    {@link Examples#CLUSTER_INFORMATION}
+     *  @response.representation.200.example    {@link Examples#STACK}
      *  @response.representation.404.doc        Specified cluster does not exist
      *  
      *  @param      clusterName                 Name of the cluster
      *  @return                                 Returns the Cluster Information
      *  @throws     WebApplicationException     Throws exception 
      */
-    @Path(value = "/{clusterName0}")
     @GET
-    @Produces({"application/json", "application/xml"})
-    public ClusterInformation getClusterDefinition(@PathParam("clusterNamez") String clusterName)
throws WebApplicationException {
+    @Path("{clusterName}")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    public ClusterInformation getClusterDefinition(@PathParam("clusterName") String clusterName)
throws WebApplicationException {
         try {
             return Clusters.getInstance().getClusterInformation(clusterName);
         }catch (WebApplicationException we) {
@@ -154,12 +156,12 @@ public class ClustersResource {
      * @return                                  Returns updated cluster definition
      * @throws  Exception                       throws Exception
      */ 
-    @Path(value = "/{clusterName1}")
     @PUT
-    @Consumes({"application/json", "application/xml"})
-    @Produces({"application/json", "application/xml"})
+    @Path("{clusterName}")
+    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public ClusterDefinition updateClusterDefinition(
-           @PathParam("clusterNamey") String clusterName,
+           @PathParam("clusterName") String clusterName,
            @DefaultValue("false") @QueryParam("dry_run") boolean dry_run,
            ClusterDefinition cluster) throws Exception {    
         try {
@@ -187,8 +189,8 @@ public class ClustersResource {
      * @throws  Exception                       throws Exception 
      */ 
     @PUT
-    @Consumes({"application/json", "application/xml"})
-    @Path(value = "/clusters/{clusterName}/rename")
+    @Path("{clusterName}/rename")
+    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public void renameCluster(
            @PathParam("clusterName") String clusterName,
            @DefaultValue("") @QueryParam("new_name") String new_name) throws Exception {
   
@@ -215,12 +217,12 @@ public class ClustersResource {
      *                                  will be lost.
      *  
      *  @param  clusterName             Name of the cluster
-     *  @throws Exception               throws Exception 
+     *  @throws Exception               throws Exception
      */
-    @Path(value = "/{clusterName2}")
     @DELETE
-    @Consumes({"application/json", "application/xml"})
-    public void deleteCluster(@PathParam("clusterNamex") String clusterName) throws Exception
{
+    @Path("{clusterName}")
+    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    public void deleteCluster(@PathParam("clusterName") String clusterName) throws Exception
{
         try {
             Clusters.getInstance().deleteCluster(clusterName);
         }catch (WebApplicationException we) {
@@ -251,9 +253,9 @@ public class ClustersResource {
      *  @return                         Returns cluster state object.
      *  @throws Exception               throws Exception   
      */
-    @Path(value = "/{clusterName}/state")
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("{clusterName}/state")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public ClusterState getClusterState(@PathParam("clusterName") String clusterName) throws
Exception {
         try {
             return Clusters.getInstance().getClusterState(clusterName);
@@ -289,9 +291,9 @@ public class ClustersResource {
      *  @return             List of nodes
      *  @throws Exception   throws Exception
      */
-    @Path(value = "/{clusterName}/nodes")
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("{clusterName}/nodes")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public List<Node> getNodes (@PathParam("clusterName") String clusterName,
                                 @DefaultValue("") @QueryParam("role") String role,
                                 @DefaultValue("") @QueryParam("alive") String alive) throws
Exception {    
@@ -326,9 +328,9 @@ public class ClustersResource {
      *  @return             Stack
      *  @throws Exception   throws Exception
      */
-    @Path(value = "/{clusterName}/stack")
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("{clusterName}/stack")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Stack getClusterStack (@PathParam("clusterName") String clusterName,
                                 @DefaultValue("true") @QueryParam("expanded") boolean expanded)
throws Exception {    
         try {

Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java
(original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java
Wed Nov  2 06:52:51 2011
@@ -26,16 +26,18 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
 import org.apache.ambari.common.rest.entities.Node;
 import org.apache.ambari.controller.ExceptionResponse;
 import org.apache.ambari.controller.Nodes;
+import org.apache.ambari.controller.rest.config.Examples;
 
 
 /** Nodes Resource represents collection of cluster nodes.
  */
-@Path(value = "/nodes")
+@Path("nodes")
 public class NodesResource {
             
     /** Get list of nodes
@@ -43,10 +45,10 @@ public class NodesResource {
      *  The "allocated and "alive" are the boolean variables that specify the type of nodes
to return based on their state i.e. if they are already allocated to any cluster and live
or dead. 
      *  Live nodes are the ones that are consistently heart beating with the controller.
If both "allocated" and "alive" are set to NULL then all the nodes are returned.  
      *  
-     * @response.representation.200.doc  Successful. 
+     * @response.representation.200.doc       Successful. 
      * @response.representation.200.mediaType application/json
-     * @response.representation.404.doc Node does not exist
-     * @response.representation.200.example
+     * @response.representation.404.doc       Node does not exist
+     * @response.representation.200.example   {@link Examples#NODE}
      * 
      *  @param  allocated               Boolean value to specify, if nodes to be returned
are allocated/reserved for some cluster (specify null to return both allocated and unallocated
nodes)
      *  @param  alive                   Boolean value to specify, if nodes to be returned
are alive or dead or both (specify null to return both live and dead nodes) 
@@ -54,7 +56,8 @@ public class NodesResource {
      *  @throws Exception               throws Exception
      */
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public List<Node> getNodesList (@DefaultValue("") @QueryParam("allocated") String
allocated,
                                     @DefaultValue("") @QueryParam("alive") String alive)
throws Exception {
         List<Node> list;
@@ -77,18 +80,18 @@ public class NodesResource {
     /** 
      * Get the node information that includes, service states, node attributes etc.
      * 
-     * @response.representation.200.doc  Successful. 
+     * @response.representation.200.doc       Successful. 
      * @response.representation.200.mediaType application/json
-     * @response.representation.404.doc Node does not exist
-     * @response.representation.200.example
+     * @response.representation.404.doc       Node does not exist
+     * @response.representation.200.example   {@link Examples#NODE}
      *  
      * @param hostname          Fully qualified hostname
      * @return                  Returns the node information
      * @throws Exception        throws Exception
      */
-    @Path(value = "/{hostname}")
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("{hostname}")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public Node getNode (@PathParam("hostname") String hostname) throws Exception {
         try {
             return Nodes.getInstance().getNode(hostname);

Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/StacksResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/StacksResource.java?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/StacksResource.java
(original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/StacksResource.java
Wed Nov  2 06:52:51 2011
@@ -23,41 +23,43 @@ import javax.ws.rs.Consumes;
 import javax.ws.rs.DELETE;
 import javax.ws.rs.DefaultValue;
 import javax.ws.rs.GET;
-import javax.ws.rs.POST;
 import javax.ws.rs.PUT;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
 import org.apache.ambari.common.rest.entities.Stack;
 import org.apache.ambari.common.rest.entities.StackInformation;
 import org.apache.ambari.controller.Stacks;
 import org.apache.ambari.controller.ExceptionResponse;
-import org.codehaus.jettison.json.JSONArray;
+import org.apache.ambari.controller.rest.config.Examples;
 
 /** 
  * StackResource represents a Hadoop stack to be installed on a 
  * cluster. Stacks define a collection of Hadoop components that are
  * installed together on a cluster and their configuration.
  */
-@Path(value = "/stacks")
+@Path("stacks")
 public class StacksResource {
  
     /** 
      * Get the list of stacks
      * 
      * @response.representation.200.doc         Successful
-     * @response.representation.200.mediaType   application/json
+     * @response.representation.200.mediaType   application/json application/xml
+     * @response.representation.200.example     {@link Examples#STACK_INFORMATION}
      * @response.representation.204.doc         List is empty.
      *  
      * @return Returns the list of StackInformation items
      * @throws Exception
      */
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public List<StackInformation> listStacks() throws Exception {
         List<StackInformation> list;
         try {
@@ -77,18 +79,18 @@ public class StacksResource {
      * Get a stack
      * 
      * @response.representation.200.doc       Get a stack
-     * @response.representation.200.mediaType application/json
-     * @response.representation.200.example
+     * @response.representation.200.mediaType application/json application/xml
+     * @response.representation.200.example   {@link Examples#CLUSTER_INFORMATION}
      *  
      * @param  stackName       Name of the stack
      * @param  revision        The optional stack revision, if not specified get the latest
revision
      * @return                 stack definition
      * @throws Exception       throws Exception 
      */
-    @Path(value = "/{stackName0}")
     @GET
-    @Produces({"application/json", "application/xml"})
-    public Stack getStack(@PathParam("stackNamex") String stackName, 
+    @Path("{stackName}")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    public Stack getStack(@PathParam("stackName") String stackName, 
                                   @DefaultValue("-1") @QueryParam("revision") String revision)
throws Exception {     
         try {
             return Stacks.getInstance().getStack(stackName, Integer.parseInt(revision));
@@ -103,16 +105,17 @@ public class StacksResource {
      * Get a stack's revisions
      * 
      * @response.representation.200.doc       Get stack revisions
-     * @response.representation.200.mediaType application/json
+     * @response.representation.200.mediaType application/json application/xml
+     * @response.representation.200.example   {@link Examples#STACK_INFORMATION}
      *  
      * @param  stackName       Name of the stack
      * 
      * @return                 List of stack revisions
      * @throws Exception       throws Exception
      */
-    @Path(value = "/{stackName}/revisions")
     @GET
-    @Produces({"application/json", "application/xml"})
+    @Path("{stackName}/revisions")
+    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
     public List<StackInformation> getstackRevisions(@PathParam("stackName") String
stackName) throws Exception {     
         try {
             List<StackInformation> list = Stacks.getInstance().getStackRevisions(stackName);
@@ -131,16 +134,16 @@ public class StacksResource {
      * Delete the stack
      * 
      * @response.representation.200.doc       Delete a stack
-     * @response.representation.200.mediaType application/json
+     * @response.representation.200.mediaType application/json application/xml
      *  
-     * @param  stackName    Name of the stack
+     * @param  stackName        Name of the stack
      * @param  revision         Revision of the stack
      * @throws Exception        throws Exception (TBD)
      */
-    @Path(value = "/{stackName1}")
     @DELETE
-    @Consumes({"application/json", "application/xml"})
-    public void deletestack(@PathParam("stackNamey") String stackName,
+    @Path("{stackName}")
+    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    public void deletestack(@PathParam("stackName") String stackName,
                                 @DefaultValue("") @QueryParam("revision") String revision
) throws Exception {     
         try {
             if (revision == null || revision.equals("")) {
@@ -164,21 +167,22 @@ public class StacksResource {
      * of stacks. If specified then stack is downloaded from the repository.
      *
      * @response.representation.200.doc         Successfully created the new or updated the
existing stack.
-     * @response.representation.200.mediaType   application/json
+     * @response.representation.200.mediaType   application/json application/xml
+     * @response.representation.200.example     {@link Examples#STACK}
      * @response.representation.404.doc         Specified stack does not exist. In case of
creating new one, 
      *                                          it is not found in repository where in case
of update, it does not
      *                                          exist.    
      * 
      * @param stackName Name of the stack
      * @param locationURL   URL pointing to the location of the stack
-     * @param stack     Input stack object specifying the stack definition
+     * @param stack         Input stack object specifying the stack definition
      * @return              Returns the new revision of the stack
      * @throws Exception    throws Exception
      */
-    @Path(value = "/{stackName2}")
     @PUT
-    @Consumes({"application/json", "application/xml"})
-    public Stack updateStack(@PathParam("stackNamez") String stackName, 
+    @Path("{stackName}")
+    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
+    public Stack updateStack(@PathParam("stackName") String stackName, 
                                      @DefaultValue("") @QueryParam("url") String locationURL,
                                      Stack stack) throws Exception {
         try {

Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/WadlResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/WadlResource.java?rev=1196472&r1=1196471&r2=1196472&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/WadlResource.java
(original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/WadlResource.java
Wed Nov  2 06:52:51 2011
@@ -58,6 +58,8 @@ public class WadlResource {
 
     /**
      * Display REST API in human readable format
+     * @response.representation.200.doc       This page.
+     * @response.representation.200.mediaType application/xml
      * @param uriInfo
      * @return WADL XML Representation of REST API
      */



Mime
View raw message