Commit 3e67dc1c00117d6ef901df1ae588265a3f05623f

Authored by Andrii Shvaika
1 parent 03fb9dcd

Restore the getTenantAsset API call signature

... ... @@ -379,9 +379,9 @@ public class AssetController extends BaseController {
379 379 notes = "Requested asset must be owned by tenant that the user belongs to. " +
380 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 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 383 @ResponseBody
384   - public Asset getTenantAssetByName(
  384 + public Asset getTenantAsset(
385 385 @ApiParam(value = ASSET_NAME_DESCRIPTION)
386 386 @RequestParam String assetName) throws ThingsboardException {
387 387 try {
... ...