1. Overview

Microservice containing the business logic for managing templates of external config service definitions.

1.1. URI scheme

Host : localhost
BasePath : /

1.2. Tags

  • action-controller : Action Controller

  • action-type-controller : Action Type Controller

  • call-controller : Call 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
Parameters
Type Name Description Schema

Body

actionRequest
required

actionRequest

ActionRequest

Responses
HTTP Code Description Schema

200

OK

ActionResponse

201

Created

ActionResponse

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

409

Action name {actionName} already exists

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.1.2. Get Actions

GET /v1/actions
Parameters
Type Name Description Schema Default

Query

actionId
optional

actionId

integer (int64)

Query

includeDeleted
optional

includeDeleted

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

< ActionResponse > array

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.1.3. Update an Action

PUT /v1/actions/{id}
Parameters
Type Name Description Schema

Path

id
required

id

integer (int64)

Body

actionRequest
required

actionRequest

ActionRequest

Responses
HTTP Code Description Schema

200

OK

ActionResponse

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

404

Action with id {id#} doesn’t exist

HttpErrorResponse

409

Action name {actionName} already exists

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.1.4. Delete an Action

DELETE /v1/actions/{id}
Parameters
Type Name Description Schema

Path

id
required

id

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

404

Action with id {id#} doesn’t exist

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.2. Action-type-controller

Action Type Controller

2.2.1. Create an ActionType

POST /v1/actionTypes
Parameters
Type Name Description Schema

Body

actionTypeRequest
required

actionTypeRequest

ActionTypeRequest

Responses
HTTP Code Description Schema

200

OK

ActionTypeResponse

201

Created

ActionTypeResponse

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

409

ActionType name {actionTypeName} already exists

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.2.2. Get ActionTypes

GET /v1/actionTypes
Parameters
Type Name Description Schema Default

Query

actionTypeId
optional

actionTypeId

integer (int64)

Query

includeDeleted
optional

includeDeleted

boolean

"false"

Responses
HTTP Code Description Schema

200

OK

< ActionType > array

201

Created

ActionTypeResponse

204

No Content, Error retrieving actionTypes

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.2.3. Update an ActionType

PUT /v1/actionTypes/{id}
Parameters
Type Name Description Schema

Path

id
required

id

integer (int64)

Body

actionTypeRequest
required

actionTypeRequest

ActionTypeRequest

Responses
HTTP Code Description Schema

200

OK

ActionTypeResponse

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

404

ActionType with id {id#} doesn’t exist

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.2.4. Delete an ActionType

DELETE /v1/actionTypes/{id}
Parameters
Type Name Description Schema

Path

id
required

id

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

204

No Content, Error retrieving actions

HttpErrorResponse

400

Bad Request

HttpErrorResponse

401

User Unauthorized

HttpErrorResponse

404

ActionType with id {id#} doesn’t exist

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.3. Call-controller

Call Controller

2.3.1. Create configuration for given action

POST /v1/configurations
Parameters
Type Name Description Schema

Body

externalConfigRequest
optional

External config data Object

ExternalConfigRequest

Responses
HTTP Code Description Schema

201

Created

ExternalConfigResource

400

Invalid data supplied

HttpErrorResponse

401

User Unauthorized

No Content

404

Action/ActionType/Configuration is not found

HttpErrorResponse

409

Conflict, configuration already exists. Use a PUT to update

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.3.2. Get Configurations

GET /v1/configurations
Parameters
Type Name Description Schema Default

Query

actionId
optional

actionId

integer (int32)

Query

actionName
optional

actionName

string

Query

actionTypeId
optional

actionTypeId

integer (int32)

Query

configId
optional

configId

integer (int64)

Query

includeDeleted
optional

includeDeleted

boolean

"false"

Query

page
optional

page

integer (int32)

0

Query

size
optional

size

integer (int32)

20

Responses
HTTP Code Description Schema

200

OK

ExternalConfigResponsePage

204

No Content, Error retrieving actions

HttpErrorResponse

401

User Unauthorized

No Content

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.3.3. Update configuration for given action

PUT /v1/configurations/{id}
Parameters
Type Name Description Schema

Path

id
required

id

integer (int64)

Body

externalUpdateConfigRequest
optional

External config data Object

ExternalConfigUpdateRequest

Responses
HTTP Code Description Schema

200

OK

ExternalConfigResource

400

Invalid data supplied

HttpErrorResponse

401

User Unauthorized

No Content

404

Not Found, Action/ActionType/Configuration is not valid

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.3.4. Delete Configuration

DELETE /v1/configurations/{id}
Parameters
Type Name Description Schema

Path

id
required

id

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

400

Invalid data supplied

HttpErrorResponse

401

User Unauthorized

No Content

404

Configuration details not found

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.4. Parameter-controller

Parameter Controller

2.4.1. Get Parameters

GET /v1/parameters
Parameters
Type Name Description Schema Default

Query

id
optional

id

string

Query

includeCustomProperties
optional

includeCustomProperties

boolean

"true"

Query

name
optional

name

string

Responses
HTTP Code Description Schema

200

OK

< ParameterResponse > array

204

No Content, Error retrieving parameters

HttpErrorResponse

401

User Unauthorized

No Content

500

Internal Server Error

HttpErrorResponse

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5. Tab-controller

Tab Controller

2.5.1. Create association by tabId, appId

POST /apps
Parameters
Type Name Description Schema

Body

body
required

body

TabAppRequest

Responses
HTTP Code Description Schema

200

OK

object

201

Created

CustomTabConfigResponse

400

Bad Request

HttpErrorResponse

401

Unauthorized

HttpErrorResponse

404

Not Found

HttpErrorResponse

409

Conflict

HttpErrorResponse

422

Unprocessable Entity

HttpErrorResponse

500

Internal Server error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.2. Update sequenceOrder, enable/disable of tabs mapped to app

PUT /apps/{appId}
Parameters
Type Name Description Schema

Path

appId
required

appId

integer (int64)

Body

body
required

body

TabDataRequest

Responses
HTTP Code Description Schema

200

Response

CustomTabConfigResponse

400

Bad Request

HttpErrorResponse

401

Unauthorized

HttpErrorResponse

404

Not Found

HttpErrorResponse

422

Unprocessable Entity

HttpErrorResponse

500

Internal Server error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.3. Get tabs details mapped to appId

GET /apps/{appId}/tabs
Parameters
Type Name Description Schema Default

Path

appId
required

appId

integer (int64)

Query

enabled
optional

enabled

integer (int32)

Query

page
optional

page

integer (int32)

0

Query

size
optional

size

integer (int32)

20

Responses
HTTP Code Description Schema

200

Ok

CustomTabConfigResults

204

No Content, Error retrieving actions

HttpErrorResponse

401

User Unauthorized

No Content

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.4. Get tabs and apps associated details

GET /apps/{appId}/tabs/{tabId}
Parameters
Type Name Description Schema

Path

appId
required

appId

integer (int64)

Path

tabId
required

tabId

integer (int64)

Responses
HTTP Code Description Schema

200

Ok

CustomTabConfigResponse

401

Unauthorized

HttpErrorResponse

404

Not Found

HttpErrorResponse

422

Unprocessable Entity

HttpErrorResponse

500

Internal Server error

HttpErrorResponse

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.5. Create a tab

POST /tabs
Parameters
Type Name Description Schema

Body

body
required

body

TabRequest

Responses
HTTP Code Description Schema

200

OK

object

201

Created

TabResponse

400

Bad Request

HttpErrorResponse

401

Unauthorized

HttpErrorResponse

404

Not Found

HttpErrorResponse

409

Conflict

HttpErrorResponse

422

Unprocessable Entity

HttpErrorResponse

500

Internal Server error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.6. Get all or standard or custom tab details

GET /tabs
Parameters
Type Name Description Schema Default

Query

page
optional

page

integer (int32)

0

Query

size
optional

size

integer (int32)

20

Query

tabType
required

tabType

enum (All, Standard, Custom)

Responses
HTTP Code Description Schema

200

Ok

CustomTabResults

204

No Content, Error retrieving actions

HttpErrorResponse

401

User Unauthorized

No Content

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.7. Get tab by Id

GET /tabs/{tabId}
Parameters
Type Name Description Schema

Path

tabId
required

tabId

integer (int64)

Responses
HTTP Code Description Schema

200

Ok

TabResponse

204

No Content, Error retrieving actions

HttpErrorResponse

401

User Unauthorized

No Content

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.8. Update tab details by Id

PUT /tabs/{tabId}
Parameters
Type Name Description Schema

Path

tabId
required

tabId

integer (int64)

Body

body
required

body

TabRequest

Responses
HTTP Code Description Schema

200

Response

TabResponse

400

Bad Request

HttpErrorResponse

401

Unauthorized

HttpErrorResponse

404

Not Found

HttpErrorResponse

422

Unprocessable Entity

HttpErrorResponse

500

Internal Server error

HttpErrorResponse

Consumes
  • application/json

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.9. Delete a Tab

DELETE /tabs/{tabId}
Parameters
Type Name Description Schema

Path

tabId
required

tabId

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

400

Invalid data supplied

HttpErrorResponse

401

User Unauthorized

No Content

404

Tab details not found

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.10. Get apps mapped to tabId

GET /tabs/{tabId}/apps
Parameters
Type Name Description Schema Default

Path

tabId
required

tabId

integer (int64)

Query

page
optional

page

integer (int32)

0

Query

size
optional

size

integer (int32)

20

Responses
HTTP Code Description Schema

200

Ok

CustomTabConfigResults

204

No Content, Error retrieving actions

HttpErrorResponse

401

User Unauthorized

No Content

500

Internal Server Error

HttpErrorResponse

Produces
  • application/json;charset=UTF-8

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

2.5.11. Delete Tab & App association

DELETE /tabs/{tabId}/apps/{appId}
Parameters
Type Name Description Schema

Path

appId
required

appId

integer (int64)

Path

tabId
required

tabId

integer (int64)

Responses
HTTP Code Description Schema

200

OK

object

400

Invalid data supplied

HttpErrorResponse

401

User Unauthorized

No Content

404

Tab details not found

HttpErrorResponse

500

Internal Server Error

HttpErrorResponse

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

client_creds

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

3. Definitions

3.1. ActionRequest

Name Schema

description
optional

string

name
optional

string

3.2. ActionResponse

Name Schema

createdBy
optional

string

createdOn
optional

string

deleted
optional

boolean

description
optional

string

id
optional

integer (int64)

lastModifiedBy
optional

string

lastModifiedOn
optional

string

name
optional

string

3.3. ActionType

Name Schema

createdBy
optional

string

createdOn
optional

string (date-time)

deleted
optional

boolean

description
optional

string

id
optional

integer (int64)

lastModifiedBy
optional

string

lastModifiedOn
optional

string (date-time)

name
optional

string

3.4. ActionTypeRequest

Name Schema

description
optional

string

name
optional

string

3.5. ActionTypeResponse

Name Schema

createdBy
optional

string

createdOn
optional

string

deleted
optional

boolean

description
optional

string

id
optional

integer (int64)

lastModifiedBy
optional

string

lastModifiedOn
optional

string

name
optional

string

3.6. CustomTabConfigResource

Name Schema

appId
optional

integer (int64)

enabled
optional

integer (int32)

links
optional

< Link > array

sequenceOrder
optional

integer (int32)

tab
optional

TabResponse

3.7. CustomTabConfigResponse

Name Description Schema

appId
optional

integer (int64)

createdBy
optional

string

createdOn
optional

string

enabled
optional

Minimum value : -128
Maximum value : 127

integer (int32)

id
optional

integer (int64)

lastModifiedBy
optional

string

lastModifiedOn
optional

string

sequenceOrder
optional

integer (int32)

tab
optional

TabResponse

3.8. CustomTabConfigResults

Name Schema

content
optional

< CustomTabConfigResource > array

links
optional

< Link > array

page
optional

PageMetadata

3.9. CustomTabResource

Name Description Schema

configData
optional

TabAuthorizationRequest

configExpression
optional

string

createdBy
optional

string

createdOn
optional

string

description
optional

string

displayName
optional

string

id
optional

integer (int64)

lastModifiedBy
optional

string

lastModifiedOn
optional

string

links
optional

< Link > array

standard
optional

Minimum value : -128
Maximum value : 127

integer (int32)

3.10. CustomTabResults

Name Schema

content
optional

< CustomTabResource > array

links
optional

< Link > array

page
optional

PageMetadata

3.11. Error

Name Schema

code
optional

string

details
optional

object

3.12. ExternalConfigRequest

Name Schema

actionId
optional

integer (int64)

actionTypeId
optional

integer (int64)

data
optional

object

3.13. ExternalConfigResource

Name Schema

actionId
optional

integer (int64)

actionName
optional

string

actionType
optional

string

actionTypeId
optional

integer (int64)

configId
optional

integer (int64)

createdBy
optional

string

createdOn
optional

string

data
optional

object

deleted
optional

boolean

id
optional

integer (int64)

lastModifiedOn
optional

string

links
optional

< Link > array

updatedBy
optional

string

3.14. ExternalConfigResponse

Name Schema

actionId
optional

integer (int64)

actionName
optional

string

actionType
optional

string

actionTypeId
optional

integer (int64)

configId
optional

integer (int64)

createdBy
optional

string

createdOn
optional

string

data
optional

object

deleted
optional

boolean

id
optional

integer (int64)

lastModifiedOn
optional

string

updatedBy
optional

string

3.15. ExternalConfigResponsePage

Name Schema

content
optional

< Resource«ExternalConfigResponse» > array

links
optional

< Link > array

page
optional

PageMetadata

3.16. ExternalConfigUpdateRequest

Name Schema

actionId
optional

integer (int64)

actionTypeId
optional

integer (int64)

data
optional

object

3.17. HttpErrorResponse

Name Schema

error
optional

Error

path
optional

string

timestamp
optional

string

Name Schema

href
optional

string

rel
optional

string

templated
optional

boolean

3.19. PageMetadata

Name Schema

number
optional

integer (int64)

size
optional

integer (int64)

totalElements
optional

integer (int64)

totalPages
optional

integer (int64)

3.20. ParameterResponse

Name Schema

customProperty
optional

boolean

dataType
optional

string

id
optional

string

name
optional

string

propertyCategoryId
optional

string

propertyGroupId
optional

string

3.21. Resource«ExternalConfigResponse»

Name Schema

actionId
optional

integer (int64)

actionName
optional

string

actionType
optional

string

actionTypeId
optional

integer (int64)

configId
optional

integer (int64)

createdBy
optional

string

createdOn
optional

string

data
optional

object

deleted
optional

boolean

id
optional

integer (int64)

lastModifiedOn
optional

string

links
optional

< Link > array

updatedBy
optional

string

3.22. TabAppRequest

Name Schema

appId
optional

integer (int64)

tabId
optional

integer (int64)

3.23. TabAuthorizationRequest

Name Schema

authentication
optional

boolean

enableSeriallot
optional

boolean

externalLink
optional

string

inputParams
optional

string

password
optional

string

username
optional

string

3.24. TabDataRequest

Name Schema

enabled
optional

integer (int32)

sequenceOrder
optional

integer (int32)

tabId
optional

integer (int64)

3.25. TabRequest

Name Schema

configData
optional

TabAuthorizationRequest

configExpression
optional

string

description
optional

string

displayName
optional

string

standard
optional

integer (int32)

3.26. TabResponse

Name Description Schema

configData
optional

TabAuthorizationRequest

configExpression
optional

string

createdBy
optional

string

createdOn
optional

string

description
optional

string

displayName
optional

string

id
optional

integer (int64)

lastModifiedBy
optional

string

lastModifiedOn
optional

string

standard
optional

Minimum value : -128
Maximum value : 127

integer (int32)

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.