1. Overview
Microservice containing the business logic for managing configuration of standard,custom tabs & custom (PRE,POST) calls.
1.2. Tags
-
action-controller : Action Controller
-
action-type-controller : Action Type Controller
-
application-tab-controller : Application Tab Controller
-
call-controller : Call Controller
-
external-config-controller : External Config Controller
-
parameter-controller : Parameter Controller
-
tab-controller : Tab Controller
2. Resources
2.1. Action-controller
Action Controller
2.1.1. Create an Action
POST /v1/actions
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
|
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
409 |
Action name {actionName} already exists |
|
500 |
Internal Server Error |
2.1.2. Get Actions
GET /v1/actions
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
actionId |
actionId |
integer (int64) |
|
Query |
includeDeleted |
includeDeleted |
boolean |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ActionResponse > array |
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
500 |
Internal Server Error |
2.1.3. Update an Action
PUT /v1/actions/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
id |
integer (int64) |
Body |
actionRequest |
actionRequest |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
404 |
Action with id {id#} doesn’t exist |
|
500 |
Internal Server Error |
2.1.4. Delete an Action
DELETE /v1/actions/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
404 |
Action with id {id#} doesn’t exist |
|
500 |
Internal Server Error |
2.2. Action-type-controller
Action Type Controller
2.2.1. Create an ActionType
POST /v1/actionTypes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
|
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
409 |
ActionType name {actionTypeName} already exists |
|
500 |
Internal Server Error |
2.2.2. Get ActionTypes
GET /v1/actionTypes
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
actionTypeId |
actionTypeId |
integer (int64) |
|
Query |
includeDeleted |
includeDeleted |
boolean |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ActionType > array |
204 |
No Content, Error retrieving actionTypes |
|
401 |
User Unauthorized |
No Content |
500 |
Internal Server Error |
2.2.3. Update an ActionType
PUT /v1/actionTypes/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
id |
integer (int64) |
Body |
actionTypeRequest |
actionTypeRequest |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
404 |
ActionType with id {id#} doesn’t exist |
|
500 |
Internal Server Error |
2.2.4. Delete an ActionType
DELETE /v1/actionTypes/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
204 |
No Content, Error retrieving actions |
|
400 |
Bad Request |
|
401 |
User Unauthorized |
|
404 |
ActionType with id {id#} doesn’t exist |
|
500 |
Internal Server Error |
2.3. Application-tab-controller
Application Tab Controller
2.3.1. Get tabs mapped to appId.
GET /apps/{appId}/tabs
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
appId |
appId |
integer (int64) |
|
Query |
enabled |
enabled |
boolean |
|
Query |
page |
page |
integer (int32) |
|
Query |
size |
size |
integer (int32) |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ApplicationTabResponseResults > array |
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.3.2. Get tab details mapped to appId
GET /apps/{appId}/tabs/{tabId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
appId |
appId |
integer (int64) |
Path |
tabId |
tabId |
integer (int64) |
Query |
segmentId |
segmentId |
integer (int64) |
Query |
workOrderId |
workOrderId |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.4. Call-controller
Call Controller
2.4.1. Create configuration for given action
POST /v1/configurations
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
externalConfigRequest |
External config data Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Action/ActionType/Configuration is not found |
|
409 |
Conflict, configuration already exists. Use a PUT to update |
|
500 |
Internal Server Error |
2.4.2. Update configuration for given action
PUT /v1/configurations/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
id |
integer (int64) |
Body |
externalUpdateConfigRequest |
External config data Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, Action/ActionType/Configuration is not valid |
|
500 |
Internal Server Error |
2.4.3. Delete Configuration
DELETE /v1/configurations/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Configuration details not found |
|
500 |
Internal Server Error |
2.5. External-config-controller
External Config Controller
2.5.1. Get Configurations
GET /v1/configurations
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
actionId |
actionId |
integer (int32) |
|
Query |
actionName |
actionName |
string |
|
Query |
actionTypeId |
actionTypeId |
integer (int32) |
|
Query |
configId |
configId |
integer (int64) |
|
Query |
includeDeleted |
includeDeleted |
boolean |
|
Query |
page |
page |
integer (int32) |
|
Query |
segmentId |
segmentId |
integer (int64) |
|
Query |
size |
size |
integer (int32) |
|
Query |
workOrderId |
workOrderId |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content, Error retrieving actions |
|
401 |
User Unauthorized |
No Content |
500 |
Internal Server Error |
2.6. Parameter-controller
Parameter Controller
2.6.1. Get Parameters
GET /v1/parameters
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
id |
id |
string |
|
Query |
includeCustomProperties |
includeCustomProperties |
boolean |
|
Query |
name |
name |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< ParameterResponse > array |
204 |
No Content, Error retrieving parameters |
|
401 |
User Unauthorized |
No Content |
500 |
Internal Server Error |
2.7. Tab-controller
Tab Controller
2.7.1. Get the application collections
GET /apps
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< Application > array |
401 |
Unauthorized |
|
500 |
Internal Server error |
2.7.2. Update tabs details mapped to appId
PUT /apps/{appId}/tabs
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
appId |
appId |
integer (int64) |
Body |
request |
request |
< UpdateTabToggleRequest > array |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< UpdateTabToggleResponse > array |
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.7.3. Create a tab
POST /tabs
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
CREATED |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.7.4. Get the tab collections
GET /tabs
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
page |
integer (int32) |
|
Query |
size |
size |
integer (int32) |
|
Query |
type |
type |
enum (Standard, Custom) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< TabDetailResponseResults > array |
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.7.5. Get a tab
GET /tabs/{tabId}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.7.6. Update a tab
PUT /tabs/{tabId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
tabId |
tabId |
integer (int64) |
Body |
request |
request |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
3. Definitions
3.2. ActionResponse
Name | Description | Schema |
---|---|---|
createdBy |
string |
|
createdOn |
string |
|
deleted |
Example : |
boolean |
description |
string |
|
id |
integer (int64) |
|
lastModifiedBy |
string |
|
lastModifiedOn |
string |
|
name |
string |
3.3. ActionType
Name | Description | Schema |
---|---|---|
createdBy |
string |
|
createdOn |
string (date-time) |
|
deleted |
Example : |
boolean |
description |
string |
|
id |
integer (int64) |
|
lastModifiedBy |
string |
|
lastModifiedOn |
string (date-time) |
|
name |
string |
3.5. ActionTypeResponse
Name | Description | Schema |
---|---|---|
createdBy |
string |
|
createdOn |
string |
|
deleted |
Example : |
boolean |
description |
string |
|
id |
integer (int64) |
|
lastModifiedBy |
string |
|
lastModifiedOn |
string |
|
name |
string |
3.9. ApplicationTabDetailResponse
Name | Schema |
---|---|
description |
string |
display_name |
string |
id |
integer (int64) |
standard |
boolean |
tab_config_data |
|
tab_config_expressions |
3.10. ApplicationTabResponseResource
Name | Schema |
---|---|
description |
string |
displayName |
string |
enabled |
boolean |
id |
integer (int64) |
links |
< Link > array |
sequenceOrder |
integer (int32) |
standard |
boolean |
3.11. ApplicationTabResponseResults
Name | Schema |
---|---|
content |
< ApplicationTabResponseResource > array |
links |
< Link > array |
page |
3.12. CreateTabRequest
Name | Schema |
---|---|
description |
string |
display_name |
string |
standard |
boolean |
tab_app_mappings |
< AppMappingRequest > array |
tab_config_data |
3.14. ExternalConfigRequest
Name | Schema |
---|---|
actionId |
integer (int64) |
actionTypeId |
integer (int64) |
data |
object |
3.15. ExternalConfigResource
Name | Description | Schema |
---|---|---|
actionId |
integer (int64) |
|
actionName |
string |
|
actionType |
string |
|
actionTypeId |
integer (int64) |
|
configId |
integer (int64) |
|
createdBy |
string |
|
createdOn |
string |
|
data |
object |
|
deleted |
Example : |
boolean |
id |
integer (int64) |
|
lastModifiedOn |
string |
|
links |
< Link > array |
|
updatedBy |
string |
3.16. ExternalConfigResponse
Name | Description | Schema |
---|---|---|
actionId |
integer (int64) |
|
actionName |
string |
|
actionType |
string |
|
actionTypeId |
integer (int64) |
|
configId |
integer (int64) |
|
createdBy |
string |
|
createdOn |
string |
|
data |
object |
|
deleted |
Example : |
boolean |
id |
integer (int64) |
|
lastModifiedOn |
string |
|
updatedBy |
string |
3.17. ExternalConfigResponsePage
Name | Schema |
---|---|
content |
< ExternalConfigResponse > array |
links |
< Link > array |
page |
3.18. ExternalConfigUpdateRequest
Name | Schema |
---|---|
actionId |
integer (int64) |
actionTypeId |
integer (int64) |
data |
object |
3.20. InputParamterRequest
Name | Schema |
---|---|
custom_property |
boolean |
input_mapping_key |
string |
input_parameter_data |
string |
input_parameter_id |
integer (int64) |
input_parameter_value |
string |
property_definition_id |
string |
property_definition_initial_id |
string |
property_definition_initial_value |
string |
property_group_id |
string |
3.23. PageMetadata
Name | Schema |
---|---|
number |
integer (int64) |
size |
integer (int64) |
totalElements |
integer (int64) |
totalPages |
integer (int64) |
3.24. ParameterResponse
Name | Description | Schema |
---|---|---|
customProperty |
Example : |
boolean |
dataType |
string |
|
id |
string |
|
name |
string |
|
propertyCategoryId |
string |
|
propertyGroupId |
string |
3.25. TabConfigData
Name | Schema |
---|---|
authentication |
boolean |
enable_seriallot |
boolean |
external_url |
string |
tab_input_parameters |
< InputParamterRequest > array |
3.27. TabDetailResponse
Name | Schema |
---|---|
description |
string |
display_name |
string |
id |
integer (int64) |
standard |
boolean |
tab_app_mappings |
< AppMappingResponse > array |
tab_config_data |
|
tab_config_expressions |
3.28. TabDetailResponseResource
Name | Schema |
---|---|
description |
string |
display_name |
string |
id |
integer (int64) |
links |
< Link > array |
standard |
boolean |
tab_app_mappings |
< AppMappingResponse > array |
tab_config_data |
|
tab_config_expressions |
3.29. TabDetailResponseResults
Name | Schema |
---|---|
content |
< TabDetailResponseResource > array |
links |
< Link > array |
page |
3.30. UpdateTabRequest
Name | Schema |
---|---|
description |
string |
display_name |
string |
tab_app_mappings |
< AppMappingRequest > array |
tab_config_data |
3.31. UpdateTabToggleRequest
Name | Schema |
---|---|
enabled |
integer (int32) |
sequenceOrder |
integer (int32) |
tabId |
integer (int64) |
3.32. UpdateTabToggleResponse
Name | Schema |
---|---|
content |
< UpdateTabToggleRequest > array |
message |
string |
4. Security
4.1. access_token
Type : oauth2
Flow : accessCode
Token URL : https://10.181.213.73/uaa/oauth/authorize
Token URL : https://10.181.213.73/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.2. resource_owner
Type : oauth2
Flow : password
Token URL : https://10.181.213.73/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.3. implicit_grant
Type : oauth2
Flow : implicit
Token URL : https://10.181.213.73/uaa/oauth/authorize
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.4. client_creds
Type : oauth2
Flow : application
Token URL : https://10.181.213.73/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |