Making sure RSDOCS are available for YANG REST API.
Change-Id: I2d4a1e76a4ee387c13837b1f8eb035b1c276a573
diff --git a/apps/yang/web/src/main/java/org/onosproject/yang/web/YangWebResource.java b/apps/yang/web/src/main/java/org/onosproject/yang/web/YangWebResource.java
index 83e0118..907e017 100644
--- a/apps/yang/web/src/main/java/org/onosproject/yang/web/YangWebResource.java
+++ b/apps/yang/web/src/main/java/org/onosproject/yang/web/YangWebResource.java
@@ -107,6 +107,7 @@
* code "200 OK" is returned.Otherwise,
* HTTP error status code "400 Bad Request" is returned.
*
+ * @onos.rsModel YangModelsGet
* @return HTTP response
*/
@GET
@@ -117,7 +118,7 @@
modelRegistry = getService(YangModelRegistry.class);
ObjectNode result = mapper().createObjectNode();
Set<YangModel> models = modelRegistry.getModels();
- ArrayNode ids = result.putArray("Model_ids");
+ ArrayNode ids = result.putArray("model_ids");
for (YangModel m : models) {
ids.add(m.getYangModelId());
}
@@ -130,6 +131,7 @@
* resource plus HTTP status code "200 OK" is returned. Otherwise,
* HTTP error status code "400 Bad Request" is returned.
*
+ * @onos.rsModel YangModulesGet
* @param id for model
* @return HTTP response
*/
diff --git a/apps/yang/web/src/main/resources/definitions/YangModelsGet.json b/apps/yang/web/src/main/resources/definitions/YangModelsGet.json
new file mode 100644
index 0000000..3d81712
--- /dev/null
+++ b/apps/yang/web/src/main/resources/definitions/YangModelsGet.json
@@ -0,0 +1,4 @@
+{
+ "type": "object"
+}
+
diff --git a/apps/yang/web/src/main/resources/definitions/YangModulesGet.json b/apps/yang/web/src/main/resources/definitions/YangModulesGet.json
new file mode 100644
index 0000000..e6307dc
--- /dev/null
+++ b/apps/yang/web/src/main/resources/definitions/YangModulesGet.json
@@ -0,0 +1,3 @@
+{
+ "type": "object"
+}