Fixed RESTCONF integration, added IT skeleton
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / sal / rest / api / RestconfService.java
index 0f566f5df72e36bd9e401ec8613585cafc460e13..b8cb2292542b8da4ecf7f8573d6b578a47ff3810 100644 (file)
@@ -44,7 +44,7 @@ import org.opendaylight.yangtools.yang.data.api.CompositeNode;
  *         <li>/version (field)
  *     </ul>
  */
-@Path("restconf")
+@Path("/")
 public interface RestconfService {
 
     public static final String XML = "+xml";
@@ -59,17 +59,17 @@ public interface RestconfService {
     public Object readAllData();
 
     @GET
-    @Path("/datastore/{identifier}")
+    @Path("/datastore/{identifier:.+}")
     @Produces({API+JSON,API+XML})
     public StructuredData readData(@PathParam("identifier") String identifier);
 
     @PUT
-    @Path("/datastore/{identifier}")
+    @Path("/datastore/{identifier:.+}")
     @Produces({API+JSON,API+XML})
     public Object createConfigurationData(@PathParam("identifier") String identifier, CompositeNode payload);
 
     @POST
-    @Path("/datastore/{identifier}")
+    @Path("/datastore/{identifier:.+}")
     @Produces({API+JSON,API+XML})
     public Object updateConfigurationData(@PathParam("identifier") String identifier, CompositeNode payload);