Bug 5526 - Supported MediaTypes from Draft11 in all writers from
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / md / sal / rest / schema / SchemaExportContentYinBodyWriter.java
index 98d4f5476c51aaf04b1f62ab45e5456316d03130..2dabce3b718f7d3fbf768ed3b4c104b1a615f5e0 100644 (file)
@@ -18,10 +18,12 @@ import javax.ws.rs.core.MultivaluedMap;
 import javax.ws.rs.ext.MessageBodyWriter;
 import javax.ws.rs.ext.Provider;
 import javax.xml.stream.XMLStreamException;
+import org.opendaylight.restconf.Draft11;
+import org.opendaylight.restconf.utils.RestconfConstants;
 import org.opendaylight.yangtools.yang.model.export.YinExportUtils;
 
 @Provider
-@Produces(SchemaRetrievalService.YIN_MEDIA_TYPE)
+@Produces({ SchemaRetrievalService.YIN_MEDIA_TYPE, Draft11.MediaTypes.YIN + RestconfConstants.XML })
 public class SchemaExportContentYinBodyWriter implements MessageBodyWriter<SchemaExportContext> {
 
     @Override