Path: / {BASE} / user / me

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


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

Method Summary
ResourceDescription
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
HTTP Example:
GET /{BASE}/user/me

API Example:

UserWebService.get({});

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

Output:
javax.ws.rs.core.Response - {@link AccountPoJo} of the current user in JSON
Produces:
application/json
HTTP Example:
POST /{BASE}/user/me

API Example:

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

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.

Input:
javax.ws.rs.core.MultivaluedMap<String,String> - the user profile (foaf, without prefix) in {@value Namespaces#MIME_TYPE_FORM_URLENC}
Output:
javax.ws.rs.core.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)
HTTP Example:
POST /{BASE}/user/me

API Example:

UserWebService.post({});

Dummy to avoid exceptions if post body is empty.

Output:
javax.ws.rs.core.Response - {@link AccountPoJo} of the current user in JSON