- Complete REST API with session management
- Dynamic user creation with isolated environments
- Multi-user isolation using /d/hermesai/users/{user_id}/.hermes structure
- Full command execution capabilities via Hermes CLI
- Health check and status endpoints
- Follows module development specifications
31 lines
881 B
JSON
31 lines
881 B
JSON
{
|
|
"name": "hermes_services_crud",
|
|
"table": "hermes_services",
|
|
"operations": {
|
|
"create": {
|
|
"fields": ["name", "owner_id", "org_id", "service_url", "api_key", "config", "status"],
|
|
"required": ["name", "service_url"],
|
|
"validation": {
|
|
"name": "^[a-zA-Z0-9_-]{3,50}$",
|
|
"service_url": "^https?://.+"
|
|
}
|
|
},
|
|
"read": {
|
|
"fields": ["id", "name", "owner_id", "org_id", "service_url", "status", "created_at", "updated_at"],
|
|
"filters": ["id", "owner_id", "org_id", "status"],
|
|
"order_by": ["created_at DESC"]
|
|
},
|
|
"update": {
|
|
"fields": ["name", "service_url", "api_key", "config", "status"],
|
|
"required": [],
|
|
"validation": {
|
|
"service_url": "^https?://.+"
|
|
}
|
|
},
|
|
"delete": {
|
|
"soft_delete": true,
|
|
"status_field": "status",
|
|
"deleted_value": "inactive"
|
|
}
|
|
}
|
|
} |