mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:46:46 +00:00
rate-limits refactor for single point of truth 5
This commit is contained in:
parent
e60d0cc348
commit
794a7121fb
@ -1889,7 +1889,7 @@ api_enabled_endpoints=[
|
||||
OBPv5.1.0-updateConsumerRedirectUrl,
|
||||
OBPv5.1.0-enableDisableConsumers,
|
||||
OBPv5.1.0-deleteConsumer,
|
||||
OBPv6.0.0-getActiveCallLimitsAtDate,
|
||||
OBPv6.0.0-getActiveRateLimitsAtDate,
|
||||
OBPv6.0.0-updateRateLimits,
|
||||
OBPv5.1.0-getMetrics,
|
||||
OBPv5.1.0-getAggregateMetrics,
|
||||
|
||||
@ -453,9 +453,9 @@ trait APIMethods600 {
|
||||
|
||||
|
||||
staticResourceDocs += ResourceDoc(
|
||||
getActiveCallLimitsAtDate,
|
||||
getActiveRateLimitsAtDate,
|
||||
implementedInApiVersion,
|
||||
nameOf(getActiveCallLimitsAtDate),
|
||||
nameOf(getActiveRateLimitsAtDate),
|
||||
"GET",
|
||||
"/management/consumers/CONSUMER_ID/consumer/active-rate-limits/DATE",
|
||||
"Get Active Rate Limits at Date",
|
||||
@ -483,7 +483,7 @@ trait APIMethods600 {
|
||||
Some(List(canGetRateLimits)))
|
||||
|
||||
|
||||
lazy val getActiveCallLimitsAtDate: OBPEndpoint = {
|
||||
lazy val getActiveRateLimitsAtDate: OBPEndpoint = {
|
||||
case "management" :: "consumers" :: consumerId :: "consumer" :: "active-rate-limits" :: dateString :: Nil JsonGet _ =>
|
||||
cc =>
|
||||
implicit val ec = EndpointContext(Some(cc))
|
||||
|
||||
@ -47,7 +47,7 @@ class RateLimitsTest extends V600ServerSetup {
|
||||
object ApiEndpoint1 extends Tag(nameOf(Implementations6_0_0.createCallLimits))
|
||||
object ApiEndpoint2 extends Tag(nameOf(Implementations6_0_0.deleteCallLimits))
|
||||
object UpdateRateLimits extends Tag(nameOf(Implementations6_0_0.updateRateLimits))
|
||||
object ApiEndpoint3 extends Tag(nameOf(Implementations6_0_0.getActiveCallLimitsAtDate))
|
||||
object ApiEndpoint3 extends Tag(nameOf(Implementations6_0_0.getActiveRateLimitsAtDate))
|
||||
|
||||
lazy val postCallLimitJsonV600 = CallLimitPostJsonV600(
|
||||
from_date = new Date(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user