1 package org.opendaylight.controller.sal.rest.api;
3 import static org.opendaylight.controller.sal.restconf.impl.MediaTypes.API;
5 import javax.ws.rs.GET;
6 import javax.ws.rs.POST;
7 import javax.ws.rs.PUT;
8 import javax.ws.rs.Path;
9 import javax.ws.rs.PathParam;
10 import javax.ws.rs.Produces;
12 import org.opendaylight.controller.md.sal.common.api.TransactionStatus;
13 import org.opendaylight.controller.sal.restconf.impl.StructuredData;
14 import org.opendaylight.yangtools.yang.common.RpcResult;
15 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
17 public interface RestconfServiceLegacy {
19 public static final String XML = "+xml";
20 public static final String JSON = "+json";
25 @Produces({API+JSON,API+XML})
26 public StructuredData readAllData();
30 @Path("/datastore/{identifier:.+}")
31 @Produces({API+JSON,API+XML})
32 public StructuredData readData(@PathParam("identifier") String identifier);
36 @Path("/datastore/{identifier:.+}")
37 @Produces({API+JSON,API+XML})
38 public RpcResult<TransactionStatus> createConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload);
42 @Path("/datastore/{identifier:.+}")
43 @Produces({API+JSON,API+XML})
44 public RpcResult<TransactionStatus> updateConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload);