Skip to content

Commit

Permalink
feature/Tweak the path of endpoint getConsentByConsentIdViaConsumer v…
Browse files Browse the repository at this point in the history
…5.1.0
  • Loading branch information
constantine2nd committed Jul 5, 2024
1 parent 75cdea0 commit d32bf27
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/APIMethods510.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ trait APIMethods510 {
implementedInApiVersion,
nameOf(getConsentByConsentIdViaConsumer),
"GET",
"/consumer/consents/CONSENT_ID",
"/consumer/current/consents/CONSENT_ID",
"Get Consent By Consent Id",
s"""
|
Expand All @@ -1031,7 +1031,7 @@ trait APIMethods510 {
),
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2))
lazy val getConsentByConsentIdViaConsumer: OBPEndpoint = {
case "consumer" :: "consents" :: consentId :: Nil JsonGet _ => {
case "consumer" :: "current" :: "consents" :: consentId :: Nil JsonGet _ => {
cc => implicit val ec = EndpointContext(Some(cc))
for {
consent <- Future { Consents.consentProvider.vend.getConsentByConsentId(consentId)} map {
Expand Down

0 comments on commit d32bf27

Please sign in to comment.