yavsc/src/Yavsc.Api/ResourceUsage.http
Paul Schneider 650e5f5e30
feat: add resource quotas, PayPal subscriptions and paid disk allowances
Calculate and enforce configurable resource consumption, expose balances in PostIt and document the rule in CGU. Add confirmed monthly PayPal credits and disk quotas of twice the free default for Discovery and five times for Premium, with payment reconciliation, migrations and regression tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-08 05:02:23 +00:00

14 lines
530 B
HTTP

@baseUrl = https://localhost:5104
@token = replace-with-access-token
### Current user's cumulative counters, indicator and effective quota (also accessible at the limit)
GET {{baseUrl}}/api/v1/resource-usage/me
Authorization: Bearer {{token}}
### Latest snapshot per user (administrator role required)
GET {{baseUrl}}/api/v1/resource-usage/admin
Authorization: Bearer {{token}}
### Consuming operation: returns 429 Problem Details when quota is exhausted
GET {{baseUrl}}/api/v1/notifications/me
Authorization: Bearer {{token}}