Skip to content

Commit 3770c03

Browse files
committed
docfix: webui_props glossary item
1 parent 02e1726 commit 3770c03

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

obp-api/src/main/resources/props/sample.props.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,10 +1355,10 @@ default_auth_context_update_request_key=CUSTOMER_NUMBER
13551355

13561356
# User (Developer) Invitation
13571357
webui_post_user_invitation_submit_button_value=Register as a Developer
1358-
webui_privacy_policy=
1358+
webui_privacy_policy=Undefined
13591359

13601360
#Note: if you provide the Markdown format, please use '\n\' at the end. This will preserve the line breaks.
1361-
webui_terms_and_conditions=
1361+
webui_terms_and_conditions=Undefined
13621362
webui_post_user_invitation_terms_and_conditions_checkbox_value=I agree to the above Developer Terms and Conditions
13631363

13641364
webui_developer_user_invitation_email_html_text=<!DOCTYPE html>\

obp-api/src/main/scala/code/api/util/ExampleValue.scala

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,28 @@ object ExampleValue {
14951495
lazy val dateActivatedExample = ConnectorField(NoExampleProvided,NoDescriptionProvided)
14961496
glossaryItems += makeGlossaryItem("date_activated", dateActivatedExample)
14971497

1498-
lazy val webuiPropsExample = ConnectorField(NoExampleProvided,NoDescriptionProvided)
1498+
lazy val webuiPropsExample = ConnectorField(
1499+
"webui_api_explorer_url",
1500+
"""WebUI Props are properties that configure the Web UI behavior and appearance. Properties with names starting with 'webui_' can be stored in the database and managed via API.
1501+
|
1502+
|Data Sources:
1503+
|1. Explicit WebUiProps (Database): Custom values created/updated via the POST /management/webui_props API endpoint and stored in the database. These take highest precedence.
1504+
|2. Implicit WebUiProps (Configuration File): Default values defined in the sample.props.template configuration file located at obp-api/src/main/resources/props/sample.props.template.
1505+
|
1506+
|To set config file defaults, edit sample.props.template and add or modify properties starting with 'webui_'. Both commented (#webui_) and uncommented (webui_) properties are parsed, with the # automatically stripped.
1507+
|
1508+
|When calling GET /management/webui_props:
1509+
|- Without 'active' parameter or active=false: Returns only explicit props from the database
1510+
|- With active=true: Returns explicit props + implicit (default) props from configuration file. When both sources have the same property name, the database value takes precedence. Implicit props are marked with webUiPropsId = 'default'.
1511+
|
1512+
|Precedence order (highest to lowest):
1513+
|1. Database WebUI Props (set via POST /management/webui_props)
1514+
|2. Props files (default.props, etc.) - standard application config
1515+
|3. sample.props.template - returned as defaults when active=true
1516+
|4. Environment variables can also override props
1517+
|
1518+
|Examples of webui props include: webui_header_logo_left_url, webui_api_explorer_url, webui_api_manager_url, webui_sandbox_introduction, etc.""".stripMargin
1519+
)
14991520
glossaryItems += makeGlossaryItem("webui_props", webuiPropsExample)
15001521

15011522
lazy val userCustomerLinksExample = ConnectorField(NoExampleProvided,NoDescriptionProvided)

obp-api/src/main/scala/code/api/v3_1_0/APIMethods310.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import code.api.util.ApiRole._
1010
import code.api.util.ApiTag._
1111
import code.api.util.ErrorMessages.{BankAccountNotFound, _}
1212
import code.api.util.ExampleValue._
13+
import code.api.util.Glossary
1314
import code.api.util.FutureUtil.EndpointContext
1415
import code.api.util.NewStyle.HttpCode
1516
import code.api.util._
@@ -5776,6 +5777,8 @@ trait APIMethods310 {
57765777
|Get database props combined with defaults:
57775778
|${getObpApiRoot}/v3.1.0/management/webui_props?active=true
57785779
|
5780+
|For more details about WebUI Props, including how to set config file defaults and precedence order, see ${Glossary.getGlossaryItemLink("webui_props")}.
5781+
|
57795782
|""",
57805783
EmptyBody,
57815784
ListResult(

0 commit comments

Comments
 (0)