1 package org.opendaylight.controller.sal.rest.api;
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;
13 import org.opendaylight.controller.sal.restconf.impl.StructuredData;
14 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
16 public interface RestconfServiceLegacy {
18 public static final String XML = "+xml";
19 public static final String JSON = "+json";
24 @Produces({Draft01.MediaTypes.DATASTORE+JSON,Draft01.MediaTypes.DATASTORE+XML})
25 public StructuredData readAllData();
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);
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);
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);