Solved bugs and added tests in sal-rest-connector
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / sal / restconf / impl / RestconfService.java
index 3dc181b826bc5b9a17be4caccf2fd768832d1889..8f821410c60e190d7e2788544817e6e33cb9aad3 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.controller.sal.restconf.impl;
 
+import static org.opendaylight.controller.sal.restconf.impl.MediaTypes.API;
+
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
 import javax.ws.rs.PUT;
@@ -14,11 +16,8 @@ import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 
-import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
 
-import static org.opendaylight.controller.sal.restconf.impl.MediaTypes.*;
-
 /**
  *   The URI hierarchy for the RESTCONF resources consists of an entry
  *   point container, 3 top-level resources, and 1 field.  Refer to
@@ -49,37 +48,35 @@ public interface RestconfService {
 
     public static final String XML = "+xml";
     public static final String JSON = "+json";
-    
+
     @GET
     public Object getRoot();
-    
+
     @GET
     @Path("/datastore")
     @Produces({API+JSON,API+XML})
     public Object readAllData();
-    
+
     @GET
     @Path("/datastore/{identifier}")
     @Produces({API+XML})
     public Object readData(@PathParam("identifier") String identifier);
-    
+
     @PUT
     @Path("/datastore/{identifier}")
     @Produces({API+XML})
     public Object createConfigurationData(@PathParam("identifier") String identifier, CompositeNode payload);
-    
+
     @POST
     @Path("/datastore/{identifier}")
     @Produces({API+XML})
     public Object updateConfigurationData(@PathParam("identifier") String identifier, CompositeNode payload);
-    
-    
-    
+
     @GET
     @Path("/modules")
     @Produces(API+XML)
     public Object getModules();
-    
+
     @POST
     @Path("/operations/{identifier}")
     @Produces(API+XML)