//Feature API
Feature Management API
Endpoints
POST /features/create_feature
Creates a new feature for an application (Admin only).Input: ~~~json { "app": "myapp", "name": "Dark Mode", "feature_price": 5.0 } ~~~
Output: ~~~json { "feature": "Dark Mode", "id": 1 } ~~~
PUT /features/assign_feature
Enables a feature for an organization.Input: ~~~json { "org_uuid": "uuid", "feature": { "id": 1 } } ~~~
Output: ~~~json { "message": "feature added" } ~~~
GET /features/client_feature/:org_uuid
Checks which features are enabled for a client context.Output: ~~~json { "datas": [{ "name": "Dark Mode", "status": "yes" }] } ~~~