X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frest%2Fapi%2FRestconfServiceLegacy.java;h=35da98b1a0db82e72d6cb32de8e0e34c858e1a41;hb=638093908ccb9f2824e264ab68c789d18b5e93ac;hp=242e7f3150d4b775ce56d957ae62ba947a080eba;hpb=0dadcef34b246c1fe0b6966dfddf87656873d75e;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfServiceLegacy.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfServiceLegacy.java index 242e7f3150..35da98b1a0 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfServiceLegacy.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/api/RestconfServiceLegacy.java @@ -1,13 +1,12 @@ package org.opendaylight.controller.sal.rest.api; -import static org.opendaylight.controller.sal.restconf.impl.MediaTypes.API; - import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.opendaylight.controller.sal.restconf.impl.StructuredData; @@ -21,25 +20,28 @@ public interface RestconfServiceLegacy { @Deprecated @GET @Path("/datastore") - @Produces({API+JSON,API+XML}) + @Produces({Draft01.MediaTypes.DATASTORE+JSON,Draft01.MediaTypes.DATASTORE+XML}) public StructuredData readAllData(); @Deprecated @GET @Path("/datastore/{identifier:.+}") - @Produces({API+JSON,API+XML}) + @Produces({Draft01.MediaTypes.DATA+JSON,Draft01.MediaTypes.DATA+XML, + MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML}) public StructuredData readData(@PathParam("identifier") String identifier); @Deprecated - @PUT + @POST @Path("/datastore/{identifier:.+}") - @Produces({API+JSON,API+XML}) + @Produces({Draft01.MediaTypes.DATA+JSON,Draft01.MediaTypes.DATA+XML, + MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML}) public Response createConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload); @Deprecated - @POST + @PUT @Path("/datastore/{identifier:.+}") - @Produces({API+JSON,API+XML}) + @Produces({Draft01.MediaTypes.DATA+JSON,Draft01.MediaTypes.DATA+XML, + MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_XML}) public Response updateConfigurationDataLegacy(@PathParam("identifier") String identifier, CompositeNode payload); }