35da98b1a0db82e72d6cb32de8e0e34c858e1a41
[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 javax.ws.rs.GET;
4 import javax.ws.rs.POST;
5 import javax.ws.rs.PUT;
6 import javax.ws.rs.Path;
7 import javax.ws.rs.PathParam;
8 import javax.ws.rs.Produces;
9 import javax.ws.rs.core.MediaType;
10 import javax.ws.rs.core.Response;
11
12 import org.opendaylight.controller.sal.restconf.impl.StructuredData;
13 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
14
15 public interface RestconfServiceLegacy {
16
17     public static final String XML = "+xml";
18     public static final String JSON = "+json";
19     
20     @Deprecated
21     @GET
22     @Path("/datastore")
23     @Produces({Draft01.MediaTypes.DATASTORE+JSON,Draft01.MediaTypes.DATASTORE+XML})
24     public StructuredData readAllData();
25
26     @Deprecated
27     @GET
28     @Path("/datastore/{identifier:.+}")
29     @Produces({Draft01.MediaTypes.DATA+JSON,Draft01.MediaTypes.DATA+XML, 
30                MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML})
31     public StructuredData readData(@PathParam("identifier") String identifier);
32
33     @Deprecated
34     @POST
35     @Path("/datastore/{identifier:.+}")
36     @Produces({Draft01.MediaTypes.DATA+JSON,Draft01.MediaTypes.DATA+XML, 
37                MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML})
38     public Response createConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload);
39
40     @Deprecated
41     @PUT
42     @Path("/datastore/{identifier:.+}")
43     @Produces({Draft01.MediaTypes.DATA+JSON,Draft01.MediaTypes.DATA+XML, 
44                MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML})
45     public Response updateConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload);
46
47 }