Skip to content

Commit 48bbc65

Browse files
committed
bugfix/added the connector params in the URL
1 parent c36ac84 commit 48bbc65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/scala/code/lib/ObpAPI.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ object ObpAPI extends Loggable {
5050

5151
final val AccountUrlPath = "/accounts/"
5252
final val ApiCollectionId = "api-collection-id"
53+
final val CONNECTOR = "connector"
5354
final val CacheModifier = "cache-modifier"
5455
final val ContentEqualStatic = "content=static"
5556
final val ContentEqualDynamic = "content=dynamic"

src/main/scala/code/snippet/ApiExplorer.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ WIP to add comments on resource docs. This code copied from Sofit.
188188

189189
logger.info(s"apiCollectionIdParam is $apiCollectionIdParam")
190190

191+
def connectorParam = S.param(CONNECTOR)
192+
193+
logger.info(s"connectorParam is $connectorParam")
194+
191195
val rawTagsParam = S.param("tags")
192196

193197
logger.info(s"rawTagsParam is $rawTagsParam")
@@ -1857,7 +1861,7 @@ WIP to add comments on resource docs. This code copied from Sofit.
18571861
"@api_group_name *" #> s"${i._1.replace("-"," ")}" &
18581862
// Within each group, and sort by suggested_order. List the message docs
18591863
"@api_list_item" #> i._2.sortBy(_.adapter_implementation.suggested_order).map { i =>
1860-
"@api_list_item_link [href]" #> s"?locale=${S.locale.toString}#${i.process}" &
1864+
"@api_list_item_link [href]" #> s"?connector=${connectorParam.getOrElse("")}&locale=${S.locale.toString}#${i.process}" &
18611865
"@api_list_item_link *" #> s"${i.process}" & // ${i.adapter_implementation.suggested_order}" &
18621866
"@api_list_item_link [id]" #> s"index_of_${i.process}"
18631867
}

0 commit comments

Comments
 (0)