Browse Source

Merge pull request #5599 from thingsboard/Lwm2m_fix_bug_API

[3.3.3] Lwm2m fix bug api
pull/5611/head
Yevhen Bondarenko 5 years ago
committed by GitHub
parent
commit
585b78cb5f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      application/src/main/java/org/thingsboard/server/controller/AssetController.java

4
application/src/main/java/org/thingsboard/server/controller/AssetController.java

@ -379,9 +379,9 @@ public class AssetController extends BaseController {
notes = "Requested asset must be owned by tenant that the user belongs to. " +
"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)
@PreAuthorize("hasAuthority('TENANT_ADMIN')")
@RequestMapping(value = "/tenant/assets/name", method = RequestMethod.GET)
@RequestMapping(value = "/tenant/assets", params = {"assetName"}, method = RequestMethod.GET)
@ResponseBody
public Asset getTenantAssetByName(
public Asset getTenantAsset(
@ApiParam(value = ASSET_NAME_DESCRIPTION)
@RequestParam String assetName) throws ThingsboardException {
try {

Loading…
Cancel
Save