Page Properties | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
Resources & Remarks Modification History
|
...
Excerpt |
---|
The USERSERVICE API allows accessing and managing custom user information, settings and content. |
Note | ||
---|---|---|
| ||
The API is available with the 2020 Winter release as an alpha version. It will be restructured, extended, and published for external clients in the yuuvis® Momentum 2021 Spring release, based on users' and customers' feedback we receive during development. |
If the path parameter userId
is specified in a request URL, the corresponding endpoint operates on the data of the user specified by this ID. In order to work with the data of the currently authorized user, the path alias /me
can be used instead of /users/{userId}
. For example, a GET /api/me
request leads to the same result as calling the GET /api/users/{userId}
endpoint.
...
Info |
---|
This API requires Keycloak as identity provider for yuuvis® Momentum. In order to use the endpoints, a valid JWT token is required which is provided after successful authentication with valid credentials. |
All endpoints are available via the Swagger-UI https://<host>/userservice/swagger-ui.html
.
HTTP Method as of product version | Purpose | Response Format | Description | |||
---|---|---|---|---|---|---|
DELETE userservice/api/users/{userId}/contents | ||||||
nopanel | true | UserContents - Manage custom content (for example, profile pictures) | GET as of 2021 Summer | getContents | JSON | |
Insert excerpt | GET userservice/api/users/{userId}/contents | GET userservice/api/users/{userId}/contents | ||||
nopanel | true | DELETE as of 2021 Summer | deleteAllContent | HTTP status code | ||
Insert excerpt | DELETE userservice/api/users/{userId}/contents | Content | ||||
GET | getContent | Binary data Insert excerpt | | GET userservice/api/users/{userId}/contents/{contentId} | GET userservice/api/users/{userId}/contents/{contentId} | |
nopanel | true | HEAD | getContentInfo | HTTP status code | ||
Insert excerpt | Retrieves an existing binary content specified by the
| users
| {userId}
| contents/
| ||
HEAD /userservice/api/users/{userId}/contents/{contentId} | ||||||
nopanel | true | setContent | HTTP status code | Insert excerpt | | POST /userservice/api/users/{userId}/contents/{contentId} | POST
nopanel | true | |||||
DELETE | deleteContent | HTTP status code | Insert excerpt | | DELETE /userservice/api/users/{userId}/contents/{contentId} | DELETE|
nopanel | true | |||||
User Info- Access to detailed user information (for example, first name, last name and email) | ||||||
GET as of 2021 Summer | getUsersgetUser | JSON Insert excerpt | | GET userservice/api/users | GET userservice/api/users | |
nopanel | true | GET as of 2021 Summer | getUser | JSON | Insert excerpt | Retrieves information on the currently logged-in user, such as first name, last name and username.
| GET /userservice/api/users/{userId} |
nopanel | true | User Settings - Manage custom settings (for example, layout settings) | GET as of 2021 Summer | getSettings | JSON | |
Insert excerpt | GET /userservice/api/users/{userId}/settings | GET /userservice/api/users/{userId}/settings | ||||
nopanel | true | DELETE as of 2021 Summer | deleteAllSettings | HTTP status code | Insert excerpt | | DELETE /userservice/api/users/{userId}/settings | DELETE /userservice/api/users/{userId}/settings |
nopanel | true | |||||
User Settings | ||||||
GET as of 2021 Summer | getSetting | JSON Insert excerpt | | GET userservice/api/users/{userId}/settings/{settingId} | GET userservice/api/users/{userId}/settings/{settingId} | |
nopanel | true | HEAD as of 2021 Summer | getSettingInfo | HTTP status code | Insert excerpt | | HEAD userservice/api/users/{userId}/settings/{settingId} | HEAD userservice/api/users/{userId}/settings/{settingId} |
nopanel | true | |||||
POST as of 2021 Summer | setSetting | HTTP status code | Insert excerpt | | POST userservice/api/users/{userId}/settings/{settingId} | POST userservice/api/users/{userId}/settings/{settingId} |
nopanel | true | |||||
DELETE as of 2021 Summer | deleteSetting | HTTP status code | Insert excerpt | | DELETE userservice/api/users/{userId}/settings/{settingId} | DELETE|
nopanel | true |