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