API Documentation

Integrate WisPanel with your applications using our comprehensive REST API.

Base URL

https://your-server-ip:2083/api/v1

All API endpoints are relative to this base URL.

Quản lý File

API Quản lý File

Quản lý file hệ thống đầy đủ.

Thao tác cơ bản

GET  /api/v1/files/list?path=/home/john     # Danh sách thư mục
GET  /api/v1/files/read?path=...            # Đọc file
POST /api/v1/files/write                   # Ghi file
POST /api/v1/files/mkdir                   # Tạo thư mục
POST /api/v1/files/delete                  # Xóa
POST /api/v1/files/rename                  # Đổi tên
POST /api/v1/files/copy                    # Sao chép
POST /api/v1/files/move                    # Di chuyển

Upload & Download

POST /api/v1/files/upload    # Upload file
GET  /api/v1/files/download  # Download file

Nén & Giải nén

POST /api/v1/files/compress  # Nén files
POST /api/v1/files/extract   # Giải nén

Thùng rác

POST   /api/v1/files/trash         # Chuyển vào thùng rác
GET    /api/v1/files/trash         # Xem thùng rác
POST   /api/v1/files/trash/restore # Khôi phục
DELETE /api/v1/files/trash         # Xóa thùng rác

Chia sẻ file

POST   /api/v1/files/share        # Tạo link chia sẻ
GET    /api/v1/files/share        # Danh sách links
DELETE /api/v1/files/share/{id}   # Xóa link

Rate Limiting

API requests are limited to 60 requests per minute per API token.

  • X-RateLimit-Limit: Maximum requests per minute
  • X-RateLimit-Remaining: Remaining requests
  • X-RateLimit-Reset: Unix timestamp when limit resets