This API will be correct to easy-wg-quick installer (link )
| Method | URL Path | Body | Description |
|---|---|---|---|
| GET | /api/v2/clients | None | Get all clients |
| PUT | /api/v2/clients/off | { client_name: "string" } | Turn off client |
| PUT | api/v2/clients/on | { client_name: "string" } | Turn on client |
| GET | api/v2/clients/{client_name} | None | Get clients status (ON or OFF) |
To activate service:
uvicorn main:app --port 50050To activate background process:
nohup uvicorn main:app --port 50050 >/dev/null 2>&1 &