Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
128595c
fix github action
Jan 13, 2026
2b4bda7
edit gitignore
Jan 13, 2026
798834a
Merge pull request #4 from karmaking/daniel2
constantine2nd Jan 13, 2026
ebc893c
Merge remote-tracking branch 'upstream/develop' into develop
constantine2nd Jan 15, 2026
1ca9496
Merge remote-tracking branch 'hongwei/develop' into develop
constantine2nd Jan 16, 2026
3616788
feature/Remove Await.result from executeRule
constantine2nd Jan 19, 2026
c1a3d91
Merge upstream/develop into develop after conflict resolution
constantine2nd Jan 22, 2026
e0f747a
Merge remote-tracking branch 'upstream/develop' into develop
constantine2nd Jan 23, 2026
f0eaeda
test/(http4s): add comprehensive Http4sCallContextBuilder unit tests
hongwei1 Jan 23, 2026
493a785
test/(http4s): add ResourceDocMatcher unit tests
hongwei1 Jan 23, 2026
79ea923
Merge upstream/develop into develop after conflict resolution
constantine2nd Jan 23, 2026
1534831
refactor/Refactor ResourceDocMiddleware: integrate JSON content type …
constantine2nd Jan 23, 2026
0188ba6
refactor/Tweak variables names
constantine2nd Jan 26, 2026
18daf8d
Revert "fix Github Action"
constantine2nd Jan 26, 2026
897a6a1
test/(http4s): improve error handling and request header extraction
hongwei1 Jan 26, 2026
87b48fc
feature/Tweak GitHub workflows
constantine2nd Jan 26, 2026
73b9ecb
Merge remote-tracking branch 'Marko/develop' into develop
hongwei1 Jan 26, 2026
5ff7b29
refactor/(resource-docs): enforce canReadResourceDoc role via middleware
hongwei1 Jan 26, 2026
b54353b
refactor/commented v130
hongwei1 Jan 26, 2026
e3de2bd
reafactor/ ci: expand branch pattern to include all branches
hongwei1 Jan 27, 2026
7f83a04
test/fix and enable card API test cases
hongwei1 Jan 27, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/auto_update_base_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
workflow_id: 'build_container_develop_branch.yml',
ref: 'refs/heads/develop'
});
if: steps.baseupdatecheck.outputs.needs-updating == 'true'
if: steps.baseupdatecheck.outputs.needs-updating == 'true'
2 changes: 1 addition & 1 deletion .github/workflows/build_container_develop_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ jobs:
cosign sign -y --key cosign.key \
docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:latest-OC
env:
COSIGN_PASSWORD: "${{secrets.COSIGN_PASSWORD}}"
COSIGN_PASSWORD: "${{secrets.COSIGN_PASSWORD}}"
3 changes: 2 additions & 1 deletion .github/workflows/build_container_non_develop_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "*"
- '**'
- "!develop"

env:
Expand Down Expand Up @@ -149,4 +150,4 @@ jobs:
cosign sign -y --key cosign.key \
docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:$GITHUB_SHA
env:
COSIGN_PASSWORD: "${{secrets.COSIGN_PASSWORD}}"
COSIGN_PASSWORD: "${{secrets.COSIGN_PASSWORD}}"
2 changes: 1 addition & 1 deletion .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: pull/
path: pull/
2 changes: 1 addition & 1 deletion .github/workflows/run_trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "trivy-results.sarif"
sarif_file: "trivy-results.sarif"
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/bootstrap/liftweb/Boot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class Boot extends MdcLoggable {
// Add the various API versions
ScannedApis.versionMapScannedApis.keys.foreach(enableVersionIfAllowed) // process all scanned apis versions
enableVersionIfAllowed(ApiVersion.v1_2_1)
enableVersionIfAllowed(ApiVersion.v1_3_0)
//enableVersionIfAllowed(ApiVersion.v1_3_0)
enableVersionIfAllowed(ApiVersion.v1_4_0)
enableVersionIfAllowed(ApiVersion.v2_0_0)
enableVersionIfAllowed(ApiVersion.v2_1_0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import code.api.util.ExampleValue.endpointMappingRequestBodyExample
import code.api.util.FutureUtil.EndpointContext
import code.api.util.NewStyle.HttpCode
import code.api.util._
import code.api.util.YAMLUtils
import code.api.v1_4_0.JSONFactory1_4_0.ResourceDocsJson
import code.api.v1_4_0.{APIMethods140, JSONFactory1_4_0, OBPAPI1_4_0}
import code.api.v2_2_0.{APIMethods220, OBPAPI2_2_0}
Expand All @@ -33,19 +32,17 @@ import com.openbankproject.commons.util.ApiStandards._
import com.openbankproject.commons.util.{ApiVersion, ScannedApiVersion}
import net.liftweb.common.{Box, Empty, Full}
import net.liftweb.http.{LiftRules, S}
import net.liftweb.http.{InMemoryResponse, LiftRules, PlainTextResponse}
import net.liftweb.json
import net.liftweb.json.JsonAST.{JField, JString, JValue}
import net.liftweb.json._

import java.util.concurrent.ConcurrentHashMap
import scala.collection.immutable
import scala.collection.immutable.{List, Nil}
import scala.concurrent.Future

// JObject creation
import code.api.v1_2_1.{APIMethods121, OBPAPI1_2_1}
import code.api.v1_3_0.{APIMethods130, OBPAPI1_3_0}
//import code.api.v1_3_0.{APIMethods130, OBPAPI1_3_0}
import code.api.v2_0_0.{APIMethods200, OBPAPI2_0_0}
import code.api.v2_1_0.{APIMethods210, OBPAPI2_1_0}

Expand All @@ -60,7 +57,7 @@ import com.openbankproject.commons.ExecutionContext.Implicits.global



trait ResourceDocsAPIMethods extends MdcLoggable with APIMethods220 with APIMethods210 with APIMethods200 with APIMethods140 with APIMethods130 with APIMethods121{
trait ResourceDocsAPIMethods extends MdcLoggable with APIMethods220 with APIMethods210 with APIMethods200 with APIMethods140 /*with APIMethods130*/ with APIMethods121{
//needs to be a RestHelper to get access to JsonGet, JsonPost, etc.
// We add previous APIMethods so we have access to the Resource Docs
self: OBPRestHelper =>
Expand Down Expand Up @@ -128,9 +125,9 @@ trait ResourceDocsAPIMethods extends MdcLoggable with APIMethods220 with APIMeth
case ApiVersion.v3_0_0 => OBPAPI3_0_0.allResourceDocs
case ApiVersion.v2_2_0 => OBPAPI2_2_0.allResourceDocs
case ApiVersion.v2_1_0 => OBPAPI2_1_0.allResourceDocs
case ApiVersion.v2_0_0 => Implementations2_0_0.resourceDocs ++ Implementations1_4_0.resourceDocs ++ Implementations1_3_0.resourceDocs ++ Implementations1_2_1.resourceDocs
case ApiVersion.v1_4_0 => Implementations1_4_0.resourceDocs ++ Implementations1_3_0.resourceDocs ++ Implementations1_2_1.resourceDocs
case ApiVersion.v1_3_0 => Implementations1_3_0.resourceDocs ++ Implementations1_2_1.resourceDocs
case ApiVersion.v2_0_0 => Implementations2_0_0.resourceDocs ++ Implementations1_4_0.resourceDocs /*++ Implementations1_3_0.resourceDocs*/ ++ Implementations1_2_1.resourceDocs
case ApiVersion.v1_4_0 => Implementations1_4_0.resourceDocs /*++ Implementations1_3_0.resourceDocs*/ ++ Implementations1_2_1.resourceDocs
case ApiVersion.v1_3_0 => ArrayBuffer.empty[ResourceDoc]
case ApiVersion.v1_2_1 => Implementations1_2_1.resourceDocs
case ApiVersion.`dynamic-endpoint` => OBPAPIDynamicEndpoint.allResourceDocs
case ApiVersion.`dynamic-entity` => OBPAPIDynamicEntity.allResourceDocs
Expand All @@ -152,7 +149,7 @@ trait ResourceDocsAPIMethods extends MdcLoggable with APIMethods220 with APIMeth
case ApiVersion.v2_1_0 => OBPAPI2_1_0.routes
case ApiVersion.v2_0_0 => OBPAPI2_0_0.routes
case ApiVersion.v1_4_0 => OBPAPI1_4_0.routes
case ApiVersion.v1_3_0 => OBPAPI1_3_0.routes
case ApiVersion.v1_3_0 => Nil
case ApiVersion.v1_2_1 => OBPAPI1_2_1.routes
case ApiVersion.`dynamic-endpoint` => OBPAPIDynamicEndpoint.routes
case ApiVersion.`dynamic-entity` => OBPAPIDynamicEntity.routes
Expand Down Expand Up @@ -1257,4 +1254,3 @@ so the caller must specify any required filtering by catalog explicitly.


}

12 changes: 6 additions & 6 deletions obp-api/src/main/scala/code/api/util/APIUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
// case ApiVersion.v1_2 => LiftRules.statelessDispatch.append(v1_2.OBPAPI1_2)
// Can we depreciate the above?
case ApiVersion.v1_2_1 => LiftRules.statelessDispatch.append(v1_2_1.OBPAPI1_2_1)
case ApiVersion.v1_3_0 => LiftRules.statelessDispatch.append(v1_3_0.OBPAPI1_3_0)
//case ApiVersion.v1_3_0 => LiftRules.statelessDispatch.append(v1_3_0.OBPAPI1_3_0)
case ApiVersion.v1_4_0 => LiftRules.statelessDispatch.append(v1_4_0.OBPAPI1_4_0)
case ApiVersion.v2_0_0 => LiftRules.statelessDispatch.append(v2_0_0.OBPAPI2_0_0)
case ApiVersion.v2_1_0 => LiftRules.statelessDispatch.append(v2_1_0.OBPAPI2_1_0)
Expand Down Expand Up @@ -3078,10 +3078,10 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
else
getCorrelationId()

val reqHeaders = if (cc.requestHeaders.nonEmpty)
cc.requestHeaders
else
S.request.openOrThrowException(attemptedToOpenAnEmptyBox).request.headers
val reqHeaders = if (cc.requestHeaders.nonEmpty)
cc.requestHeaders
else
S.request.map(_.request.headers).openOr(Nil)

val remoteIpAddress = if (cc.ipAddress.nonEmpty)
cc.ipAddress
Expand Down Expand Up @@ -5189,4 +5189,4 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
.distinct // List pairs (bank_id, account_id)
}

}
}
Loading