Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix/added the connector params in the URL #241

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/scala/code/lib/ObpAPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ object ObpAPI extends Loggable {

final val AccountUrlPath = "/accounts/"
final val ApiCollectionId = "api-collection-id"
final val CONNECTOR = "connector"
final val CacheModifier = "cache-modifier"
final val ContentEqualStatic = "content=static"
final val ContentEqualDynamic = "content=dynamic"
Expand Down
6 changes: 5 additions & 1 deletion src/main/scala/code/snippet/ApiExplorer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ WIP to add comments on resource docs. This code copied from Sofit.

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

def connectorParam = S.param(CONNECTOR)

logger.info(s"connectorParam is $connectorParam")

val rawTagsParam = S.param("tags")

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