diff --git a/templates/wiki/tabs/api.html b/templates/wiki/tabs/api.html index e69de29..fb5d6c2 100644 --- a/templates/wiki/tabs/api.html +++ b/templates/wiki/tabs/api.html @@ -0,0 +1,554 @@ +
+ DocuPulse provides a comprehensive RESTful API with 50+ endpoints for file management, user collaboration, + and system administration. The API supports both web-based interactions and external integrations with + proper authentication and authorization controls. +
+| Method | +Endpoint | +Description | +Auth Required | +
|---|---|---|---|
| POST | +/auth/login |
+ User login | +No | +
| POST | +/auth/logout |
+ User logout | +Yes | +
| POST | +/auth/register |
+ User registration | +No | +
| POST | +/auth/forgot-password |
+ Password reset request | +No | +
| POST | +/auth/reset-password |
+ Password reset | +No | +
| Method | +Endpoint | +Description | +Auth Required | +
|---|---|---|---|
| GET | +/rooms |
+ List user's rooms | +Yes | +
| POST | +/rooms |
+ Create new room | +Yes | +
| GET | +/rooms/{id} |
+ Get room details | +Yes | +
| PUT | +/rooms/{id} |
+ Update room | +Yes | +
| DELETE | +/rooms/{id} |
+ Delete room | +Yes | +
| Method | +Endpoint | +Description | +Auth Required | +
|---|---|---|---|
| GET | +/api/rooms/{room_id}/files |
+ List room files | +Yes | +
| POST | +/api/rooms/{room_id}/upload |
+ Upload file | +Yes | +
| GET | +/api/rooms/{room_id}/files/{file_id} |
+ Download file | +Yes | +
| PUT | +/api/rooms/{room_id}/files/{file_id} |
+ Update file | +Yes | +
| DELETE | +/api/rooms/{room_id}/files/{file_id} |
+ Delete file | +Yes | +
| POST | +/api/rooms/{room_id}/files/{file_id}/star |
+ Star/unstar file | +Yes | +
| Method | +Endpoint | +Description | +Auth Required | +
|---|---|---|---|
| GET | +/conversations |
+ List conversations | +Yes | +
| POST | +/conversations |
+ Create conversation | +Yes | +
| GET | +/conversations/{id}/messages |
+ Get messages | +Yes | +
| POST | +/conversations/{id}/messages |
+ Send message | +Yes | +
| POST | +/conversations/{id}/members |
+ Add member | +Yes | +
| Method | +Endpoint | +Description | +Auth Required | +
|---|---|---|---|
| GET | +/api/admin/instances |
+ List instances | +Admin | +
| POST | +/api/admin/instances |
+ Create instance | +Admin | +
| GET | +/api/admin/events |
+ Get system events | +Admin | +
| GET | +/api/admin/users |
+ List users | +Admin | +
| PUT | +/api/admin/settings |
+ Update settings | +Admin | +
| Method | +Endpoint | +Description | +Auth Required | +
|---|---|---|---|
| POST | +/api/admin/test-portainer |
+ Test Portainer connection | +No | +
| POST | +/api/admin/test-nginx |
+ Test NGINX connection | +No | +
| POST | +/api/admin/deploy-stack |
+ Deploy Docker stack | +Admin | +
| POST | +/api/admin/create-proxy |
+ Create proxy host | +Admin | +
| POST | +/api/admin/create-ssl |
+ Create SSL certificate | +Admin | +
{
+ "success": true,
+ "data": {
+ "id": 1,
+ "name": "Example",
+ "created_at": "2024-01-01T00:00:00Z"
+ },
+ "message": "Operation successful"
+}
+ {
+ "success": false,
+ "error": "Validation failed",
+ "details": {
+ "field": "name",
+ "message": "Name is required"
+ },
+ "status_code": 400
+}
+ + DocuPulse employs a sophisticated multi-tenant architecture designed for scalability, security, and maintainability. + The system is built on a modular blueprint structure with clear separation of concerns, comprehensive event logging, + and robust permission management. +
+Comprehensive event logging system with 30+ event types for audit trails and system monitoring.
++ DocuPulse is designed for containerized deployment using Docker and Docker Compose, providing a scalable, + production-ready infrastructure. The system supports both single-instance deployments and multi-tenant + orchestration with automated provisioning and health monitoring. +
+DATABASE_URL - PostgreSQL connectionSECRET_KEY - Flask secret keyFLASK_ENV - Environment modeSERVER_NAME - Server hostnamePREFERRED_URL_SCHEME - HTTP/HTTPSPORT - External port mappingMASTER - Master instance flagISMASTER - Master instance modeCSS_VERSION - Asset versioningUPLOAD_FOLDER - File storage pathLOG_LEVEL - Logging verbosityDEBUG - Debug mode flag/health - Application healthdocker-compose up -d
+ docker-compose down
+ docker-compose logs
+ docker-compose ps
+ flask db upgrade
+ flask create-admin
+ + DocuPulse includes a comprehensive email system with template management, SMTP integration, and automated + notifications. The system supports customizable email templates, delivery tracking, and integration with + various SMTP providers for reliable email delivery. +
+{{ user.name }} - User's full name{{ user.email }} - User's email{{ user.company }} - User's company{{ user.position }} - User's position{{ user.username }} - Username{{ user.profile_url }} - Profile link{{ site.name }} - Site name{{ site.url }} - Site URL{{ site.logo }} - Company logo{{ reset_url }} - Password reset link{{ room.name }} - Room name{{ file.name }} - File name+ DocuPulse features a sophisticated file management system with hierarchical organization, granular permissions, + version control, and comprehensive metadata tracking. The system supports multiple file formats, bulk operations, + and advanced search capabilities with secure storage and access controls. +
+| Permission | +Description | +
|---|---|
can_view |
+ View files & folders | +
can_download |
+ Download files | +
can_upload |
+ Upload new files | +
can_delete |
+ Delete files | +
can_rename |
+ Rename files/folders | +
can_move |
+ Move files between folders | +
can_share |
+ Share files with others | +
+ DocuPulse supports a sophisticated multi-tenant architecture where each tenant operates on a completely isolated + instance. The master instance orchestrates the creation, management, and monitoring of tenant instances with + automated deployment, health tracking, and resource management. +
++ DocuPulse uses a room-based workspace system that provides isolated collaboration environments for teams and projects. + Each room serves as a secure container for files, conversations, and team members with granular permission controls + and comprehensive activity tracking. +
+| Permission | +Description | +
|---|---|
can_view |
+ View room & files | +
can_download |
+ Download files | +
can_upload |
+ Upload files | +
can_delete |
+ Delete files | +
can_rename |
+ Rename files | +
can_move |
+ Move files | +
can_share |
+ Share files | +