POST /{BASE}/users/{login}Create a new user account (incl. user resource)
- HTTP Example:
POST /{BASE}/users/{login} | - API Example:
UserManagementWebService.createUser({'login': }); |
- Output:
- Response - the {@link org.apache.marmotta.platform.user.webservices.UserWebService.AccountPoJo} of the newly created user.
- HTTP return codes:
- 409 - if an account with the given login already exists
- 400 - if the login is a reserved keyword: [me, login, anonymous]
- 500 - on other errors.
|
GET /{BASE}/users/{login}Return the Account data of the requested login
- HTTP Example:
GET /{BASE}/users/{login} | - API Example:
UserManagementWebService.getUser({'login': }); |
- Output:
- Response - an {@link org.apache.marmotta.platform.user.webservices.UserWebService.AccountPoJo} of the requested account
- Produces:
- application/json
- HTTP return codes:
- 404 - if no such user exists.
|
DELETE /{BASE}/users/{login}Delete the account with the given login.
- HTTP Example:
DELETE /{BASE}/users/{login}?deleteFoaf=… | - API Example:
UserManagementWebService.deleteUser({'deleteFoaf': , 'login': }); |
- Output:
- Response - 200 ok on success
- Query parameters:
- deleteFoaf - if
true , also delete the user profile (foaf)
- HTTP return codes:
- 404 - if no such user exists
|