ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jspei...@apache.org
Subject git commit: AMBARI-5578. Rename stacks resource names for consistency.
Date Fri, 25 Apr 2014 22:01:31 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 462ade7dd -> 45916637e


AMBARI-5578.  Rename stacks resource names for consistency.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/45916637
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/45916637
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/45916637

Branch: refs/heads/trunk
Commit: 45916637ef1a09211c11fb8df38bb043dfa75fc9
Parents: 462ade7
Author: John Speidel <jspeidel@hortonworks.com>
Authored: Fri Apr 25 15:16:59 2014 -0400
Committer: John Speidel <jspeidel@hortonworks.com>
Committed: Fri Apr 25 18:01:18 2014 -0400

----------------------------------------------------------------------
 .../server/api/services/StacksService.java      | 26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/45916637/ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
b/ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
index 7c5eaf4..ddad6bf 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
@@ -82,7 +82,7 @@ public class StacksService extends BaseService {
 
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/operatingSystems/{osType}/repositories")
+  @Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}/repositories")
   @Produces("text/plain")
   public Response getRepositories(@Context HttpHeaders headers,
                                   @Context UriInfo ui, @PathParam("stackName") String stackName,
@@ -94,7 +94,7 @@ public class StacksService extends BaseService {
   }
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/operatingSystems/{osType}/repositories/{repoId}")
+  @Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}/repositories/{repoId}")
   @Produces("text/plain")
   public Response getRepository(@Context HttpHeaders headers,
                                 @Context UriInfo ui, @PathParam("stackName") String stackName,
@@ -107,7 +107,7 @@ public class StacksService extends BaseService {
   }
 
   @PUT
-  @Path("{stackName}/versions/{stackVersion}/operatingSystems/{osType}/repositories/{repoId}")
+  @Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}/repositories/{repoId}")
   @Produces("text/plain")
   public Response updateRepository(String body, @Context HttpHeaders headers,
                                    @Context UriInfo ui, @PathParam("stackName") String stackName,
@@ -121,7 +121,7 @@ public class StacksService extends BaseService {
 
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices")
+  @Path("{stackName}/versions/{stackVersion}/services")
   @Produces("text/plain")
   public Response getStackServices(@Context HttpHeaders headers,
                                    @Context UriInfo ui, @PathParam("stackName") String stackName,
@@ -132,7 +132,7 @@ public class StacksService extends BaseService {
   }
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}")
   @Produces("text/plain")
   public Response getStackService(@Context HttpHeaders headers,
                                   @Context UriInfo ui, @PathParam("stackName") String stackName,
@@ -145,7 +145,7 @@ public class StacksService extends BaseService {
 
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}/configurations")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}/configurations")
   @Produces("text/plain")
   public Response getStackConfigurations(@Context HttpHeaders headers,
                                          @Context UriInfo ui, @PathParam("stackName") String
stackName,
@@ -158,7 +158,7 @@ public class StacksService extends BaseService {
 
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}/configurations/{propertyName}")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}/configurations/{propertyName}")
   @Produces("text/plain")
   public Response getStackConfiguration(@Context HttpHeaders headers,
                                         @Context UriInfo ui, @PathParam("stackName") String
stackName,
@@ -171,7 +171,7 @@ public class StacksService extends BaseService {
   }
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}/serviceComponents")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components")
   @Produces("text/plain")
   public Response getServiceComponents(@Context HttpHeaders headers,
                                        @Context UriInfo ui, @PathParam("stackName") String
stackName,
@@ -183,7 +183,7 @@ public class StacksService extends BaseService {
   }
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}/serviceComponents/{componentName}/dependencies")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components/{componentName}/dependencies")
   @Produces("text/plain")
   public Response getServiceComponentDependencies(@Context HttpHeaders headers,
                                                   @Context UriInfo ui, @PathParam("stackName")
String stackName,
@@ -196,7 +196,7 @@ public class StacksService extends BaseService {
   }
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}/serviceComponents/{componentName}/dependencies/{dependencyName}")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components/{componentName}/dependencies/{dependencyName}")
   @Produces("text/plain")
   public Response getServiceComponentDependency(@Context HttpHeaders headers,
                                       @Context UriInfo ui, @PathParam("stackName") String
stackName,
@@ -212,7 +212,7 @@ public class StacksService extends BaseService {
 
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/stackServices/{serviceName}/serviceComponents/{componentName}")
+  @Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components/{componentName}")
   @Produces("text/plain")
   public Response getServiceComponent(@Context HttpHeaders headers,
                                       @Context UriInfo ui, @PathParam("stackName") String
stackName,
@@ -226,7 +226,7 @@ public class StacksService extends BaseService {
 
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/operatingSystems")
+  @Path("{stackName}/versions/{stackVersion}/operating_systems")
   @Produces("text/plain")
   public Response getOperatingSystems(@Context HttpHeaders headers,
                                       @Context UriInfo ui, @PathParam("stackName") String
stackName,
@@ -237,7 +237,7 @@ public class StacksService extends BaseService {
   }
 
   @GET
-  @Path("{stackName}/versions/{stackVersion}/operatingSystems/{osType}")
+  @Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}")
   @Produces("text/plain")
   public Response getOperatingSystem(@Context HttpHeaders headers,
                                      @Context UriInfo ui, @PathParam("stackName") String
stackName,


Mime
View raw message