Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed some ddl issues and added the transfer-quota to the seed data
- Loading branch information
1 parent
2ca000d
commit 49a514a
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
distro/db/src/main/resources/data/policyDefs/008_transfer-quota-policydef.resttest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
POST /policyDefs ${apiman.suite.api-username}/${apiman.suite.api-password} | ||
Content-Type: application/json | ||
|
||
{ | ||
"name" : "Transfer Quota Policy", | ||
"description" : "Provides a way to limit the total number of bytes that can be transferred from (or to) an API.", | ||
"policyImpl" : "class:io.apiman.gateway.engine.policies.TransferQuotaPolicy", | ||
"icon" : "download", | ||
"templates" : [ | ||
{ | ||
"language" : null, | ||
"template" : "Consumers are limited to transferring @{limit} bytes per per @{granularity} per @{period}." | ||
} | ||
] | ||
} | ||
---- | ||
200 | ||
Content-Type: application/json | ||
|
||
{ | ||
"id" : "TransferQuotaPolicy" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters