Add QR code support in API endpoints

- Updated /api/clients/create to return config and qr_code
- Updated /api/clients/{id}/details to include config and qr_code
- Added new endpoint /api/clients/{id}/qr for getting QR code only
- Added API_EXAMPLES.md with usage examples and integration code
- Updated README.md API documentation
This commit is contained in:
infosave2007
2025-11-07 15:25:59 +03:00
parent f538fb65f1
commit a52aba25d8
3 changed files with 326 additions and 3 deletions
+3 -2
View File
@@ -99,8 +99,9 @@ GET /api/servers/{id}/clients - List clients on server
### Clients
```
GET /api/clients - List all clients
GET /api/clients/{id}/details - Get client details with stats
POST /api/clients/create - Create new client
GET /api/clients/{id}/details - Get client details with stats, config and QR code
GET /api/clients/{id}/qr - Get client QR code
POST /api/clients/create - Create new client (returns config and QR code)
Parameters: server_id, name
POST /api/clients/{id}/revoke - Revoke client access
POST /api/clients/{id}/restore - Restore client access