Use YangConstants.RFC6020_YANG_MEDIA_TYPE
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / services / simple / api / RestconfSchemaService.java
index cffb2e9e61f0f4f7b1a5812621aba3a7479bec3d..3e18718854eab841edadd4963459e8df4ec53359 100644 (file)
@@ -14,6 +14,7 @@ import javax.ws.rs.Produces;
 import org.opendaylight.restconf.common.schema.SchemaExportContext;
 import org.opendaylight.restconf.nb.rfc8040.Rfc8040;
 import org.opendaylight.restconf.nb.rfc8040.utils.RestconfConstants;
+import org.opendaylight.yangtools.yang.common.YangConstants;
 
 /**
  * Retrieval of the YANG modules which server supports.
@@ -30,7 +31,7 @@ public interface RestconfSchemaService extends UpdateHandlers {
      * @return {@link SchemaExportContext}
      */
     @GET
-    @Produces({ Rfc8040.MediaTypes.YIN + RestconfConstants.XML, Rfc8040.MediaTypes.YANG })
+    @Produces({ Rfc8040.MediaTypes.YIN + RestconfConstants.XML, YangConstants.RFC6020_YANG_MEDIA_TYPE })
     @Path("modules/{identifier:.+}")
     SchemaExportContext getSchema(@PathParam("identifier") String identifier);
 }