| Crates.io | moosicbox_admin_htmx |
| lib.rs | moosicbox_admin_htmx |
| version | 0.1.4 |
| created_at | 2024-10-04 16:46:44.762247+00 |
| updated_at | 2025-07-21 20:01:10.200544+00 |
| description | MoosicBox admin htmx package |
| homepage | |
| repository | https://github.com/MoosicBox/MoosicBox |
| max_upload_size | |
| id | 1396787 |
| size | 135,711 |
Basic HTMX API endpoints for administration functionality in MoosicBox.
The MoosicBox Admin HTMX package provides:
# Clone and build
git clone https://github.com/MoosicBox/MoosicBox.git
cd MoosicBox
cargo build --package moosicbox_admin_htmx
The package provides REST API endpoints that can be integrated into a web server:
use moosicbox_admin_htmx::api;
// Example integration (actual web server setup depends on your framework)
// GET /admin/scan/status - Get scan status
// POST /admin/scan/start - Start library scan
// GET /admin/info - Get system info
// GET /admin/qobuz/status - Check Qobuz service status
// GET /admin/tidal/status - Check Tidal service status
# Check scan status
curl http://localhost:8000/admin/scan/status
# Start a library scan
curl -X POST http://localhost:8000/admin/scan/start
# Get scan progress
curl http://localhost:8000/admin/scan/progress
# Check Qobuz service status
curl http://localhost:8000/admin/qobuz/status
# Check Tidal service status
curl http://localhost:8000/admin/tidal/status
# Get system information
curl http://localhost:8000/admin/info
# Build the library
cargo build --package moosicbox_admin_htmx
# Build with API feature
cargo build --package moosicbox_admin_htmx --features api
The package provides modular API endpoints:
use moosicbox_admin_htmx::api::{scan, info, qobuz, tidal};
// Endpoints are organized by functionality:
// - scan: Library scanning operations
// - info: System information
// - qobuz: Qobuz service integration
// - tidal: Tidal service integration
// - util: Common utilities
The package is structured to support future expansion into:
To contribute to this package:
src/api/