You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/10/29 21:51:53 UTC
svn commit: r1403499 -
/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
Author: heshan
Date: Mon Oct 29 20:51:52 2012
New Revision: 1403499
URL: http://svn.apache.org/viewvc?rev=1403499&view=rev
Log:
Uncommenting the method and renaming it's relative url path.
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
Modified: airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java?rev=1403499&r1=1403498&r2=1403499&view=diff
==============================================================================
--- airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java (original)
+++ airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java Mon Oct 29 20:51:52 2012
@@ -563,11 +563,11 @@ import java.util.*;
}
}
-/* @POST
- @Path("hostdescriptor/save")
+ @POST
+ @Path("hostdescriptor/save/jason")
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
- public Response addHostDescriptor(HostDescriptor host) {
+ public Response addJasonHostDescriptor(HostDescriptor host) {
airavataRegistry = (AiravataRegistry2) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
try{
HostDescription hostDescription = new HostDescription();
@@ -592,7 +592,7 @@ import java.util.*;
Response.ResponseBuilder builder = Response.status(Response.Status.INTERNAL_SERVER_ERROR);
return builder.build();
}
- }*/
+ }
@POST
@Path("hostdescriptor/update")