NETCONF-685 : Correctly propagate 'pageNum' query parameter 54/89754/3
authorRichard Kosegi <richard.kosegi@gmail.com>
Wed, 13 May 2020 13:58:01 +0000 (15:58 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 3 Jun 2020 20:38:05 +0000 (20:38 +0000)
There is slight difference between html code used for
bierman vs. 8040 apidocs explorer. However they both trigger same
code path on server side. 8040 is not sending 'pageNum' query
parameter that server-side code is expecting, which leads to NPE.

Change-Id: I7948276390ecf76927a9720ee20ffc1b3c36a109
Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
restconf/sal-rest-docgen/src/main/resources/18/explorer/index.html

index 22c728ab4ccd81fff7f555e25d98775fdb947870..96825544f9709b98235d798305bc8c4978d8a543 100644 (file)
     <script type="text/javascript">\r
 \r
     //reloads the swagger UI documentation for the specified mount.\r
-    var loadMount = function(mountIndex, mountPath) {\r
+    var loadMount = function(mountIndex, pageNum, mountPath) {\r
         $("#message").empty();\r
         $("#message").append( "<p>Loading...</p>" );\r
-        loadSwagger("/apidoc/18/apis/mounts/" + mountIndex,\r
+        loadSwagger("/apidoc/18/apis/mounts/" + mountIndex + "?pageNum=" + pageNum,\r
                 "swagger-ui-container");\r
         loadPagination("/apidoc/18/apis/mounts/", mountIndex, mountPath, "swagger-ui-container");\r
         $("#message").empty();\r