Path: / {BASE} / user / me

Provide Account information about the currently logged in user (account)


Sub-Resources
Resources
NameDescription
passwdUpdate/change the password for the current user.

Resource Methods
Method Summary
NameDescription
GET /{BASE}/user/meProvide Account information about the currently logged in user (account)
POST /{BASE}/user/meUpdate/Set the profile information (foaf) for the current user.
POST /{BASE}/user/meDummy to avoid exceptions if post body is empty.

Method Detail

GET /{BASE}/user/me

Provide Account information about the currently logged in user (account)

HTTP Example:
GET /{BASE}/user/me
API Example:

UserWebService.get({});

Output:
Response - {@link AccountPoJo} of the current user in JSON
Produces:
application/json
See Also:
AccountPoJo

POST /{BASE}/user/me

Update/Set the profile information (foaf) for the current user. Post-Body should contain the property=value mapping (propterty without foaf-prefix) for the profile.

HTTP Example:
POST /{BASE}/user/me
API Example:

UserWebService.post({'$entity': /* formParams the user profile (foaf, without prefix) in */});

Input:
MultivaluedMap<String,String> - the user profile (foaf, without prefix) in {@value Namespaces#MIME_TYPE_FORM_URLENC}
Output:
Response - {@link AccountPoJo} after the update in JSON
Consumes:
application/x-www-form-urlencoded
HTTP return codes:
403 - When the current user is anonymous.
500 - If a {@link RepositoryException} occurs (which should not happen as no namespaces are used here)

POST /{BASE}/user/me

Dummy to avoid exceptions if post body is empty.

HTTP Example:
POST /{BASE}/user/me
API Example:

UserWebService.post({});

Output:
Response - {@link AccountPoJo} of the current user in JSON
See Also:
POST /{BASE}/user/me