refactor: implement provisioning API endpoints #15
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-commerce#15
Loading…
Add table
Reference in a new issue
No description provided.
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?
Issue
Per TODO.md (P2-048) and comment in
routes/api.php(line 38), provisioning API endpoints are commented out pending implementation.Current State
routes/api.phpcontains:Required Implementation
1. ProductApiController
Create
Controllers/Api/ProductApiController.php:index()- List available products/plansshow($id)- Get product details and pricingvariants($id)- Get product variants/options2. EntitlementApiController
Create
Controllers/Api/EntitlementApiController.php:create()- Provision entitlement for external integrationrevoke()- Remove entitlementverify()- Check entitlement statuslist()- Get all entitlements for workspace3. Authentication
4. Use Cases
These endpoints enable external integrations:
Tests Required
tests/Feature/ProductApiControllerTest.phptests/Feature/EntitlementApiControllerTest.phpPriority
P2 - High: Required for external integrations before launch.
Created by discovery scan (issue #2) - References TODO.md P2-048, routes/api.php:38