Use YangConstants.RFC6020_YANG_MEDIA_TYPE
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / md / sal / rest / schema / SchemaRetrievalService.java
index 660cbf0d32e00b5b4774dd13e9535d11802217cf..ed7e1432d61883ff0e563a2b5d30bde2ab1d5869 100644 (file)
@@ -13,6 +13,7 @@ import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import org.opendaylight.restconf.common.schema.SchemaExportContext;
+import org.opendaylight.yangtools.yang.common.YangConstants;
 
 /**
  * Retrieval of the YANG modules which server supports.
@@ -23,11 +24,10 @@ import org.opendaylight.restconf.common.schema.SchemaExportContext;
 @Beta
 public interface SchemaRetrievalService {
 
-    String YANG_MEDIA_TYPE = "application/yang";
     String YIN_MEDIA_TYPE = "application/yin+xml";
 
     @GET
-    @Produces({YIN_MEDIA_TYPE,YANG_MEDIA_TYPE})
+    @Produces({YIN_MEDIA_TYPE, YangConstants.RFC6020_YANG_MEDIA_TYPE})
     @Path("/modules/module/{identifier:.+}/schema")
     SchemaExportContext getSchema(@PathParam("identifier") String mountAndModuleId);
 }