|
|
|
@ -139,7 +139,9 @@ public class AssetController extends BaseController { |
|
|
|
notes = "Creates or Updates the Asset. When creating asset, platform generates Asset Id as " + UUID_WIKI_LINK + |
|
|
|
"The newly created Asset id will be present in the response. " + |
|
|
|
"Specify existing Asset id to update the asset. " + |
|
|
|
"Referencing non-existing Asset Id will cause 'Not Found' error." + TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH, produces = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
"Referencing non-existing Asset Id will cause 'Not Found' error. " + |
|
|
|
"Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Asset entity. " |
|
|
|
+ TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH, produces = MediaType.APPLICATION_JSON_VALUE) |
|
|
|
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN', 'CUSTOMER_USER')") |
|
|
|
@RequestMapping(value = "/asset", method = RequestMethod.POST) |
|
|
|
@ResponseBody |
|
|
|
|