1. Overview
The service contains a collection of RESTful service calls for saving, getting, updating and deleting User prefernce setting for the UI apps.
Descriptions of these functions can be found in the section headers for each collection of relevant resources.
2. Resources
2.1. UserSettings
User Settings Controller
2.1.1. Create User preference settings for the logged in user
POST /v1/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created, User Settings saved |
|
204 |
No Content, Error retrieving created user settings |
No Content |
400 |
Invalid data supplied. Request with correct json format, refer model section for the schema |
No Content |
409 |
Conflict, User Setting already exists. Use a PUT to update |
No Content |
500 |
Internal Server Error |
No Content |
2.1.2. Get User preference settings for the logged in User
GET /v1/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
404 |
Not found, no preference setting found for the user |
No Content |
2.1.3. Update User preference settings for the logged in user
PUT /v1/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied. Request with correct json format, refer model section for the schema |
No Content |
404 |
Not Found, There is no saved User preference settings for the logged in user |
No Content |
500 |
Internal Server Error |
No Content |
2.1.4. Delete User preference settings for the logged in user
DELETE /v1/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok, the record got deleted |
No Content |
404 |
Not Found, User preference file not found |
No Content |
500 |
Internal Server Error |
No Content |
2.1.5. Create User settings for the logged in user
POST /v2/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
204 |
No Content, Error retrieving created user settings |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
409 |
Conflict, User Setting already exists. Use a PUT to update |
|
500 |
Internal Server Error |
2.1.6. Get User settings for the logged in User
GET /v2/settings
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
appId |
appId |
integer (int32) |
Query |
viewName |
viewName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not found, no user setting found for the user |
|
500 |
Internal Server Error |
2.1.7. Update User settings for the logged in user
PUT /v2/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, There is no saved User settings for the logged in user |
|
500 |
Internal Server Error |
2.1.8. Delete User settings for the logged in user
DELETE /v2/settings
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
appId |
appId |
integer (int32) |
Query |
viewName |
viewName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
204 |
Success |
object |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, User Setting not found |
|
500 |
Internal Server Error |
3. Definitions
3.5. Resource«UserSettingsDto»
Name | Description | Schema |
---|---|---|
appSettings |
The application specific settings, Eg:- 'App Name' : {'property1' : 'value' , 'property2' : 'value'} } |
< string, < string, object > map > map |
globalSettings |
The global application settings to be used accross applications Eg:- { 'autoRefresh' : true} |
object |
links |
< Link > array |
3.6. UserSettingRequest
Name | Description | Schema |
---|---|---|
appId |
integer (int32) |
|
data |
The application specific settings, Eg:- 'App Name' : {'property1' : 'value' , 'property2' : 'value'} } |
object |
viewName |
string |
3.7. UserSettingResource
Name | Schema |
---|---|
appId |
integer (int32) |
data |
object |
defaultSetting |
boolean |
links |
< Link > array |
viewName |
string |
3.8. UserSettingsDto
Name | Description | Schema |
---|---|---|
appSettings |
The application specific settings, Eg:- 'App Name' : {'property1' : 'value' , 'property2' : 'value'} } |
< string, < string, object > map > map |
globalSettings |
The global application settings to be used accross applications Eg:- { 'autoRefresh' : true} |
object |
4. Security
4.1. oauth
Type : oauth2
Flow : accessCode
Token URL : https://localhost:8080/uaa/oauth/authorize
Token URL : https://localhost:8080/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |