Commit 3e67dc1c00117d6ef901df1ae588265a3f05623f
1 parent
03fb9dcd
Restore the getTenantAsset API call signature
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -379,9 +379,9 @@ public class AssetController extends BaseController { | @@ -379,9 +379,9 @@ public class AssetController extends BaseController { | ||
379 | notes = "Requested asset must be owned by tenant that the user belongs to. " + | 379 | notes = "Requested asset must be owned by tenant that the user belongs to. " + |
380 | "Asset name is an unique property of asset. So it can be used to identify the asset." + TENANT_AUTHORITY_PARAGRAPH, produces = MediaType.APPLICATION_JSON_VALUE) | 380 | "Asset name is an unique property of asset. So it can be used to identify the asset." + TENANT_AUTHORITY_PARAGRAPH, produces = MediaType.APPLICATION_JSON_VALUE) |
381 | @PreAuthorize("hasAuthority('TENANT_ADMIN')") | 381 | @PreAuthorize("hasAuthority('TENANT_ADMIN')") |
382 | - @RequestMapping(value = "/tenant/assets/name", method = RequestMethod.GET) | 382 | + @RequestMapping(value = "/tenant/assets", params = {"assetName"}, method = RequestMethod.GET) |
383 | @ResponseBody | 383 | @ResponseBody |
384 | - public Asset getTenantAssetByName( | 384 | + public Asset getTenantAsset( |
385 | @ApiParam(value = ASSET_NAME_DESCRIPTION) | 385 | @ApiParam(value = ASSET_NAME_DESCRIPTION) |
386 | @RequestParam String assetName) throws ThingsboardException { | 386 | @RequestParam String assetName) throws ThingsboardException { |
387 | try { | 387 | try { |