@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/community-profile/users/{userId}")
public class MyProfileResource
extends Object
| Constructor and Description |
|---|
MyProfileResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
addToMyAssets(String serverName,
String userId,
String assetGUID,
NullRequestBody nullRequestBody)
Add an asset to the identified user's list of favorite assets.
|
AssetListResponse |
getMyAssets(String serverName,
String userId,
int startFrom,
int pageSize)
Return a list of assets that the specified user has added to their favorites list.
|
PersonalProfileResponse |
getMyProfile(String serverName,
String userId)
Return the profile for this user.
|
VoidResponse |
removeFromMyAssets(String serverName,
String userId,
String assetGUID,
NullRequestBody nullRequestBody)
Remove an asset from identified user's list of favorite assets.
|
VoidResponse |
updateMyProfile(String serverName,
String userId,
MyProfileRequestBody requestBody)
Create or update the profile for the requesting user.
|
@GetMapping(path="/my-profile") public PersonalProfileResponse getMyProfile(@PathVariable String serverName, @PathVariable String userId)
serverName - name of the server instances for this requestuserId - userId of the user making the request.@PostMapping(path="/my-profile") public VoidResponse updateMyProfile(@PathVariable String serverName, @PathVariable String userId, @RequestBody MyProfileRequestBody requestBody)
serverName - name of the server instances for this requestuserId - the name of the calling user.requestBody - properties for the new profile.@GetMapping(path="/my-assets") public AssetListResponse getMyAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize)
serverName - name of the server instances for this requestuserId - userId of user making request.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.@PostMapping(path="/my-assets/{assetGUID}")
public VoidResponse addToMyAssets(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody nullRequestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.assetGUID - unique identifier of the asset.nullRequestBody - null request body@PostMapping(path="/my-assets/{assetGUID}/delete")
public VoidResponse removeFromMyAssets(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody(required=false)
NullRequestBody nullRequestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.assetGUID - unique identifier of the asset.nullRequestBody - null request bodyCopyright © 2018–2020 ODPi. All rights reserved.