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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user