License management API — CRUD for admin and user dashboard #624
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2.4 — License Management API
Parent: #616 | Depends on: #618, #619, #620
routers/api/v1/licensing/manage.go:Admin routes (requires site admin or org owner)
POST /api/v1/licensing/licenses— create license for a user with tierGET /api/v1/licensing/licenses— list all licenses (paginated, filterable)GET /api/v1/licensing/licenses/{id}— full license detail with entitlements + activationsPATCH /api/v1/licensing/licenses/{id}— update tier, status, max_domains, expiryDELETE /api/v1/licensing/licenses/{id}— revoke licenseUser routes (authenticated, own licenses only)
GET /api/v1/licensing/my/licenses— list user's licensesGET /api/v1/licensing/my/licenses/{id}/domains— list activated domainsDELETE /api/v1/licensing/my/licenses/{id}/domains/{domain}— deactivate a domainProduct tier routes (admin only)
GET /api/v1/licensing/tiers— list all product tiersPOST /api/v1/licensing/tiers— create tierPATCH /api/v1/licensing/tiers/{id}— update tier repos/limitsDELETE /api/v1/licensing/tiers/{id}— remove tierAcceptance criteria
Branch created:
feature/624-license-management-api-crud-for-admin-an