ApiDocServiceImpl.getListOfMounts should return an Object instead of JSON string 29/78729/4
authorwsd <wusandi@163.com>
Thu, 13 Dec 2018 05:38:44 +0000 (13:38 +0800)
committerTom Pantelis <tompantelis@gmail.com>
Thu, 13 Dec 2018 14:04:17 +0000 (14:04 +0000)
commit175a0481e96535fbe3ce7301a4e47e686a7d1087
tree0c0c9af06ca8c271f2f62e1caef6c5c0b956ce64
parent7ea2f5c076803f847ea4a00accd57a93ce8094d8
ApiDocServiceImpl.getListOfMounts should return an Object instead of JSON string

Problem: when swagger access mounted resources via /apidoc/explorer/index.html,
the explorer can't show mounted resources, only some undefined.

Reason: The JSON string in response entity is escaped by GsonProvider.

JIRA: NETCONF-587
Change-Id: Ida30a50fd7168d96904ba59fb275cf4d24817bfa
Signed-off-by: wsd <wusandi@163.com>
restconf/sal-rest-docgen/pom.xml
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/impl/ApiDocServiceImpl.java
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/MountPointInstance.java [new file with mode: 0644]
restconf/sal-rest-docgen/src/test/java/org/opendaylight/controller/sal/rest/doc/impl/ApiDocServiceImplTest.java [new file with mode: 0644]