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