mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
feature/added the props show_dynamic_resource_doc
This commit is contained in:
parent
2ea8af0bf5
commit
a10dc52d6b
@ -82,6 +82,8 @@ object ObpAPI extends Loggable {
|
||||
final val RolesEntitlementRequestButtonBox = "@roles__entitlement_request_button_box [style]"
|
||||
final val EndPointAnchorHref = ".end-point-anchor [href]"
|
||||
final val ContentBoxHeadlineId = ".content-box__headline [id]"
|
||||
|
||||
final val showDynamicResourceDoc = Helper.getPropsValue("show_dynamic_resource_doc","true").toBoolean
|
||||
|
||||
/**
|
||||
* The request vars ensure that for one page load, the same API call isn't
|
||||
@ -367,11 +369,15 @@ object ObpAPI extends Loggable {
|
||||
} else if (requestParams.contains(ContentEqualDynamic)){
|
||||
dynamicResourcesDocs
|
||||
} else{
|
||||
for{
|
||||
staticResourcesDocsList <-staticResourcesDocs
|
||||
dynamicResourcesDocsList <-dynamicResourcesDocs
|
||||
} yield {
|
||||
staticResourcesDocsList++dynamicResourcesDocsList
|
||||
if(showDynamicResourceDoc){
|
||||
for{
|
||||
staticResourcesDocsList <-staticResourcesDocs
|
||||
dynamicResourcesDocsList <-dynamicResourcesDocs
|
||||
} yield {
|
||||
staticResourcesDocsList++dynamicResourcesDocsList
|
||||
}
|
||||
}else{
|
||||
staticResourcesDocs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user