Skip to content

Conversation

@Lewiscowles1986
Copy link
Contributor

Basic rate-limiting using transient API.

  • configurable limit and period
  • correct HTTP 429 when limit reached
  • dependency upon authenticating user (no way to address anon)

Addresses #2

 * Created `CreditDataInterface`
 * Created `CreditHandlerInterface`
 * Created `SystemUserInterface`
 * Created `TTLStorageInterface`
 * Created `RestEndpointCreditData` implementing `CreditDataInterface`
 * Created `RestEndpointTimedRateLimit` implementing `CreditHandlerInterface`
 * Created `WPUser` implementing `SystemUserInterface`
 * Created `WPTransientStorage` implementing `TTLStorageInterface`
 * Added Rudimentary auto-loader to  (entrypoint)
 * Pulled in dependencies to replace hard-coded PoC functionality
 * Added `namespace` and `use` functionality
 * Manual Testing (should be automated, but we needed DI to be able to have those nice-things)
Updated Swagger definition to cover current and planned works

 * 421 and 403 error codes
 * Decision made to have 421 mirror 403 error codes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants