Merge "Bug 9092: revert to org.json temporarily"
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / base / services / api / RestconfSchemaService.java
index a636963a42ba0b7971772438cacdfb7dab7cb7af..25fecde324b47481211a0073a130a92377242dd7 100644 (file)
@@ -12,7 +12,7 @@ import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import org.opendaylight.netconf.md.sal.rest.schema.SchemaExportContext;
-import org.opendaylight.restconf.Draft18;
+import org.opendaylight.restconf.Rfc8040;
 import org.opendaylight.restconf.utils.RestconfConstants;
 
 /**
@@ -26,11 +26,11 @@ public interface RestconfSchemaService {
      * Get schema of specific module.
      *
      * @param identifier
-     *            - path parameter
+     *             path parameter
      * @return {@link SchemaExportContext}
      */
     @GET
-    @Produces({ Draft18.MediaTypes.YANG, Draft18.MediaTypes.YIN + RestconfConstants.XML })
-    @Path("data/ietf-yang-library:modules/module/{identifier:.+}/schema")
+    @Produces({ Rfc8040.MediaTypes.YIN + RestconfConstants.XML, Rfc8040.MediaTypes.YANG })
+    @Path("modules/{identifier:.+}")
     SchemaExportContext getSchema(@PathParam("identifier") String identifier);
 }