Skip to content
Merged
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
11 changes: 3 additions & 8 deletions obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2409,9 +2409,7 @@ trait APIMethods600 {
|A connector is available for method routing if it matches the `connector` prop setting,
|or if `connector=star` and the connector is listed in `starConnector_supported_types`.
|
|${userAuthenticationMessage(true)}
|
|CanGetConnectorNames entitlement is required.
|Authentication is Optional.
|
""".stripMargin,
EmptyBody,
Expand All @@ -2422,20 +2420,17 @@ trait APIMethods600 {
ConnectorInfoJsonV600("stored_procedure_vDec2019", false)
)),
List(
$AuthenticatedUserIsRequired,
UserHasMissingRoles,
UnknownError
),
List(apiTagConnector, apiTagSystem, apiTagApi),
Some(List(canGetConnectorNames))
None
)

lazy val getConnectors: OBPEndpoint = {
case "system" :: "connectors" :: Nil JsonGet _ =>
cc => implicit val ec = EndpointContext(Some(cc))
for {
(Full(u), callContext) <- authenticatedAccess(cc)
_ <- NewStyle.function.hasEntitlement("", u.userId, canGetConnectorNames, callContext)
(_, callContext) <- anonymousAccess(cc)
} yield {
// Get the connector names from the Connector object's nameToConnector map
// Also include "star" which is handled separately in getConnectorInstance
Expand Down