Merge "Reduce logged messages during build and concentrate only on the ones needed...
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / sal / rest / api / RestconfServiceLegacy.java
1 package org.opendaylight.controller.sal.rest.api;
2
3 import static org.opendaylight.controller.sal.restconf.impl.MediaTypes.API;
4
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;
11
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;
16
17 public interface RestconfServiceLegacy {
18
19     public static final String XML = "+xml";
20     public static final String JSON = "+json";
21     
22     @Deprecated
23     @GET
24     @Path("/datastore")
25     @Produces({API+JSON,API+XML})
26     public StructuredData readAllData();
27
28     @Deprecated
29     @GET
30     @Path("/datastore/{identifier:.+}")
31     @Produces({API+JSON,API+XML})
32     public StructuredData readData(@PathParam("identifier") String identifier);
33
34     @Deprecated
35     @PUT
36     @Path("/datastore/{identifier:.+}")
37     @Produces({API+JSON,API+XML})
38     public RpcResult<TransactionStatus> createConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload);
39
40     @Deprecated
41     @POST
42     @Path("/datastore/{identifier:.+}")
43     @Produces({API+JSON,API+XML})
44     public RpcResult<TransactionStatus> updateConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload);
45
46 }