|
@@ -52,40 +52,43 @@ public class StacksService extends BaseService {
|
|
|
|
|
|
@GET
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStacks(@Context HttpHeaders headers, @Context UriInfo ui) {
|
|
|
+ public Response getStacks(String body, @Context HttpHeaders headers, @Context UriInfo ui) {
|
|
|
|
|
|
- return handleRequest(headers, null, ui, Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, ui, Request.Type.GET,
|
|
|
createStackResource(null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStack(@Context HttpHeaders headers, @Context UriInfo ui,
|
|
|
+ public Response getStack(String body, @Context HttpHeaders headers,
|
|
|
+ @Context UriInfo ui,
|
|
|
@PathParam("stackName") String stackName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackResource(stackName));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStackVersions(@Context HttpHeaders headers,
|
|
|
+ public Response getStackVersions(String body,
|
|
|
+ @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackVersionResource(stackName, null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStackVersion(@Context HttpHeaders headers,
|
|
|
+ public Response getStackVersion(String body,
|
|
|
+ @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackVersionResource(stackName, stackVersion));
|
|
|
}
|
|
|
|
|
@@ -93,25 +96,27 @@ public class StacksService extends BaseService {
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}/repositories")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getRepositories(@Context HttpHeaders headers,
|
|
|
+ public Response getRepositories(String body,
|
|
|
+ @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("osType") String osType) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createRepositoryResource(stackName, stackVersion, osType, null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}/repositories/{repoId}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getRepository(@Context HttpHeaders headers,
|
|
|
+ public Response getRepository(String body,
|
|
|
+ @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("osType") String osType,
|
|
|
@PathParam("repoId") String repoId) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createRepositoryResource(stackName, stackVersion, osType, repoId));
|
|
|
}
|
|
|
|
|
@@ -132,23 +137,23 @@ public class StacksService extends BaseService {
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStackServices(@Context HttpHeaders headers,
|
|
|
+ public Response getStackServices(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackServiceResource(stackName, stackVersion, null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStackService(@Context HttpHeaders headers,
|
|
|
+ public Response getStackService(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackServiceResource(stackName, stackVersion, serviceName));
|
|
|
}
|
|
|
|
|
@@ -156,12 +161,13 @@ public class StacksService extends BaseService {
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}/configurations")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStackConfigurations(@Context HttpHeaders headers,
|
|
|
+ public Response getStackConfigurations(String body,
|
|
|
+ @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackConfigurationResource(stackName, stackVersion, serviceName, null));
|
|
|
}
|
|
|
|
|
@@ -169,52 +175,53 @@ public class StacksService extends BaseService {
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}/configurations/{propertyName}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getStackConfiguration(@Context HttpHeaders headers,
|
|
|
+ public Response getStackConfiguration(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName,
|
|
|
@PathParam("propertyName") String propertyName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackConfigurationResource(stackName, stackVersion, serviceName, propertyName));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getServiceComponents(@Context HttpHeaders headers,
|
|
|
+ public Response getServiceComponents(String body,
|
|
|
+ @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackServiceComponentResource(stackName, stackVersion, serviceName, null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components/{componentName}/dependencies")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getServiceComponentDependencies(@Context HttpHeaders headers,
|
|
|
+ public Response getServiceComponentDependencies(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName,
|
|
|
@PathParam("componentName") String componentName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackServiceComponentDependencyResource(stackName, stackVersion, serviceName, componentName, null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components/{componentName}/dependencies/{dependencyName}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getServiceComponentDependency(@Context HttpHeaders headers,
|
|
|
+ public Response getServiceComponentDependency(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName,
|
|
|
@PathParam("componentName") String componentName,
|
|
|
@PathParam("dependencyName") String dependencyName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackServiceComponentDependencyResource(stackName, stackVersion, serviceName, componentName, dependencyName));
|
|
|
}
|
|
|
|
|
@@ -223,13 +230,13 @@ public class StacksService extends BaseService {
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/services/{serviceName}/components/{componentName}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getServiceComponent(@Context HttpHeaders headers,
|
|
|
+ public Response getServiceComponent(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("serviceName") String serviceName,
|
|
|
@PathParam("componentName") String componentName) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createStackServiceComponentResource(stackName, stackVersion, serviceName, componentName));
|
|
|
}
|
|
|
|
|
@@ -237,23 +244,23 @@ public class StacksService extends BaseService {
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/operating_systems")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getOperatingSystems(@Context HttpHeaders headers,
|
|
|
+ public Response getOperatingSystems(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createOperatingSystemResource(stackName, stackVersion, null));
|
|
|
}
|
|
|
|
|
|
@GET
|
|
|
@Path("{stackName}/versions/{stackVersion}/operating_systems/{osType}")
|
|
|
@Produces("text/plain")
|
|
|
- public Response getOperatingSystem(@Context HttpHeaders headers,
|
|
|
+ public Response getOperatingSystem(String body, @Context HttpHeaders headers,
|
|
|
@Context UriInfo ui, @PathParam("stackName") String stackName,
|
|
|
@PathParam("stackVersion") String stackVersion,
|
|
|
@PathParam("osType") String osType) {
|
|
|
|
|
|
- return handleRequest(headers, null, new StackUriInfo(ui), Request.Type.GET,
|
|
|
+ return handleRequest(headers, body, new StackUriInfo(ui), Request.Type.GET,
|
|
|
createOperatingSystemResource(stackName, stackVersion, osType));
|
|
|
}
|
|
|
|