Skip to content

Commit

Permalink
refactor/rename bugEndpoints to excludeEndpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Apr 4, 2024
1 parent 4000918 commit 613c06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obp-api/src/main/scala/code/api/v5_1_0/OBPAPI5_1_0.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ object OBPAPI5_1_0 extends OBPRestHelper
// e.g getEndpoints(Implementations5_0_0) -- List(Implementations5_0_0.genericEndpoint, Implementations5_0_0.root)
lazy val endpointsOf5_1_0 = getEndpoints(Implementations5_1_0)

lazy val bugEndpoints =
lazy val excludeEndpoints =
nameOf(Implementations3_0_0.getUserByUsername) :: // following 4 endpoints miss Provider parameter in the URL, we introduce new ones in V510.
nameOf(Implementations3_1_0.getBadLoginStatus) ::
nameOf(Implementations3_1_0.unlockUser) ::
Expand All @@ -87,7 +87,7 @@ object OBPAPI5_1_0 extends OBPRestHelper
def allResourceDocs = collectResourceDocs(
OBPAPI5_0_0.allResourceDocs,
Implementations5_1_0.resourceDocs
).filterNot(it => it.partialFunctionName.matches(bugEndpoints.mkString("|")))
).filterNot(it => it.partialFunctionName.matches(excludeEndpoints.mkString("|")))

// all endpoints
private val endpoints: List[OBPEndpoint] = OBPAPI5_0_0.routes ++ endpointsOf5_1_0
Expand Down

0 comments on commit 613c06d

Please sign in to comment.