@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 |
|---|---|
org.odpi.openmetadata.accessservices.communityprofile.rest.VoidResponse |
addToMyAssets(String serverName,
String userId,
String assetGUID,
org.odpi.openmetadata.accessservices.communityprofile.rest.NullRequestBody nullRequestBody)
Add an asset to the identified user's list of favorite assets.
|
org.odpi.openmetadata.accessservices.communityprofile.rest.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.
|
org.odpi.openmetadata.accessservices.communityprofile.rest.PersonalProfileResponse |
getMyProfile(String serverName,
String userId)
Return the profile for this user.
|
org.odpi.openmetadata.accessservices.communityprofile.rest.VoidResponse |
removeFromMyAssets(String serverName,
String userId,
String assetGUID,
org.odpi.openmetadata.accessservices.communityprofile.rest.NullRequestBody nullRequestBody)
Remove an asset from identified user's list of favorite assets.
|
org.odpi.openmetadata.accessservices.communityprofile.rest.VoidResponse |
updateMyProfile(String serverName,
String userId,
org.odpi.openmetadata.accessservices.communityprofile.rest.MyProfileRequestBody requestBody)
Create or update the profile for the requesting user.
|
@RequestMapping(method=GET,
path="/my-profile")
public org.odpi.openmetadata.accessservices.communityprofile.rest.PersonalProfileResponse getMyProfile(@PathVariable
String serverName,
@PathVariable
String userId)
serverName - name of the server instances for this requestuserId - userId of the user making the request.@RequestMapping(method=POST,
path="/my-profile")
public org.odpi.openmetadata.accessservices.communityprofile.rest.VoidResponse updateMyProfile(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
org.odpi.openmetadata.accessservices.communityprofile.rest.MyProfileRequestBody requestBody)
serverName - name of the server instances for this requestuserId - the name of the calling user.requestBody - properties for the new profile.@RequestMapping(method=GET,
path="/my-assets")
public org.odpi.openmetadata.accessservices.communityprofile.rest.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.@RequestMapping(method=POST,
path="/my-assets/{assetGUID}")
public org.odpi.openmetadata.accessservices.communityprofile.rest.VoidResponse addToMyAssets(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
org.odpi.openmetadata.accessservices.communityprofile.rest.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@RequestMapping(method=POST,
path="/my-assets/{assetGUID}/delete")
public org.odpi.openmetadata.accessservices.communityprofile.rest.VoidResponse removeFromMyAssets(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
org.odpi.openmetadata.accessservices.communityprofile.rest.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–2019 ODPi. All rights reserved.