and path of RestconfSchemaService
Change-Id: I5e4449599408d9634d9b88db1ef498c63f5de60f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
public static final QName SPECIFIC_MODULE_REVISION_LEAF_QNAME =
QName.create(MODULE_QNAME, SPECIFIC_MODULE_REVISION_LEAF);
- public static final String BASE_URI_OF_SCHEMA = "/data/ietf-yang-library:modules-state/module/";
+ public static final String BASE_URI_OF_SCHEMA = "/modules/";
public static final String SPECIFIC_MODULE_SCHEMA_LEAF = "schema";
public static final QName SPECIFIC_MODULE_SCHEMA_LEAF_QNAME =
QName.create(MODULE_QNAME, SPECIFIC_MODULE_SCHEMA_LEAF);
* @return {@link SchemaExportContext}
*/
@GET
- @Produces({ Draft18.MediaTypes.YANG, Draft18.MediaTypes.YIN + RestconfConstants.XML })
- @Path("data/ietf-yang-library:modules/module/{identifier:.+}/schema")
+ @Produces({ Draft18.MediaTypes.YIN + RestconfConstants.XML, Draft18.MediaTypes.YANG })
+ @Path("modules/{identifier:.+}")
SchemaExportContext getSchema(@PathParam("identifier") String identifier);
}