val -> lazy val endpointsOfX (OBP)

This commit is contained in:
Simon Redfern 2023-09-14 17:14:53 +02:00
parent 16de107c02
commit 8dfd3e6538
11 changed files with 11 additions and 11 deletions

View File

@ -40,7 +40,7 @@ object OBPAPI1_2_1 extends OBPRestHelper with APIMethods121 with MdcLoggable wit
val version : ApiVersion = ApiVersion.v1_2_1 // "1.2.1"
val versionStatus = ApiVersionStatus.STABLE.toString
val endpointsOf1_2_1 = List(
lazy val endpointsOf1_2_1 = List(
Implementations1_2_1.root(version, versionStatus),
Implementations1_2_1.getBanks,
Implementations1_2_1.bankById,

View File

@ -19,7 +19,7 @@ object OBPAPI1_3_0 extends OBPRestHelper with APIMethods130 with APIMethods121 w
//TODO: check all these calls to see if they should really have the same behaviour as 1.2.1
val endpointsOf1_2_1 = List(
lazy val endpointsOf1_2_1 = List(
Implementations1_2_1.root(version, versionStatus),
Implementations1_2_1.getBanks,
Implementations1_2_1.bankById,

View File

@ -12,7 +12,7 @@ object OBPAPI1_4_0 extends OBPRestHelper with APIMethods140 with MdcLoggable wit
val version : ApiVersion = ApiVersion.v1_4_0 //"1.4.0"
val versionStatus = ApiVersionStatus.STABLE.toString
val endpointsOf1_2_1 = List(
lazy val endpointsOf1_2_1 = List(
Implementations1_2_1.root(version, versionStatus),
Implementations1_2_1.getBanks,
Implementations1_2_1.bankById,

View File

@ -43,7 +43,7 @@ object OBPAPI2_0_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
// Note: Since we pattern match on these routes, if two implementations match a given url the first will match
val endpointsOf1_2_1 = List(
lazy val endpointsOf1_2_1 = List(
Implementations1_2_1.root(version, versionStatus),
Implementations1_2_1.getBanks,
Implementations1_2_1.bankById,

View File

@ -47,7 +47,7 @@ object OBPAPI2_1_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
val versionStatus = ApiVersionStatus.STABLE.toString
// Possible Endpoints 1.2.1
val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
lazy val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
Implementations1_2_1.addCounterpartyCorporateLocation::
Implementations1_2_1.addCounterpartyImageUrl ::
Implementations1_2_1.addCounterpartyMoreInfo ::

View File

@ -19,7 +19,7 @@ object OBPAPI2_2_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
val versionStatus = ApiVersionStatus.STABLE.toString
// Possible Endpoints from 1.2.1
val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
lazy val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
Implementations1_2_1.addCounterpartyCorporateLocation::
Implementations1_2_1.addCounterpartyImageUrl ::
Implementations1_2_1.addCounterpartyMoreInfo ::

View File

@ -57,7 +57,7 @@ object OBPAPI3_0_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
// Possible Endpoints from 1.2.1
val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
lazy val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
Implementations1_2_1.addCounterpartyCorporateLocation::
Implementations1_2_1.addCounterpartyImageUrl ::
Implementations1_2_1.addCounterpartyMoreInfo ::

View File

@ -56,7 +56,7 @@ object OBPAPI3_1_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
// Possible Endpoints from 1.2.1
val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
lazy val endpointsOf1_2_1 = Implementations1_2_1.addCommentForViewOnTransaction ::
Implementations1_2_1.addCounterpartyCorporateLocation::
Implementations1_2_1.addCounterpartyImageUrl ::
Implementations1_2_1.addCounterpartyMoreInfo ::

View File

@ -51,7 +51,7 @@ object OBPAPI4_0_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
val version : ApiVersion = ApiVersion.v4_0_0
val versionStatus = ApiVersionStatus.STABLE.toString
lazy val versionStatus = ApiVersionStatus.STABLE.toString
// Possible Endpoints from 4.0.0, exclude one endpoint use - method,exclude multiple endpoints use -- method,
// e.g getEndpoints(Implementations4_0_0) -- List(Implementations4_0_0.genericEndpoint, Implementations4_0_0.root)

View File

@ -69,7 +69,7 @@ object OBPAPI5_0_0 extends OBPRestHelper
// Possible Endpoints from 5.0.0, exclude one endpoint use - method,exclude multiple endpoints use -- method,
// e.g getEndpoints(Implementations5_0_0) -- List(Implementations5_0_0.genericEndpoint, Implementations5_0_0.root)
val endpointsOf5_0_0 = getEndpoints(Implementations5_0_0)
lazy val endpointsOf5_0_0 = getEndpoints(Implementations5_0_0)
// if old version ResourceDoc objects have the same name endpoint with new version, omit old version ResourceDoc.
def allResourceDocs = collectResourceDocs(

View File

@ -70,7 +70,7 @@ object OBPAPI5_1_0 extends OBPRestHelper
// Possible Endpoints from 5.1.0, exclude one endpoint use - method,exclude multiple endpoints use -- method,
// e.g getEndpoints(Implementations5_0_0) -- List(Implementations5_0_0.genericEndpoint, Implementations5_0_0.root)
val endpointsOf5_1_0 = getEndpoints(Implementations5_1_0)
lazy val endpointsOf5_1_0 = getEndpoints(Implementations5_1_0)
lazy val bugEndpoints = // these endpoints miss Provider parameter in the URL, we introduce new ones in V510.
nameOf(Implementations3_0_0.getUserByUsername) ::