Appearance
User - MAC Binding
Base URL:
https://your-domain.com
Admin endpoints for managing MAC address bindings for subscribers. All endpoints require admin/staff authentication.
Fetch All MAC Bindings
Retrieve all MAC address bindings.
| Property | Value |
|---|---|
| Endpoint | Fetch All MAC Bindings |
| Method | GET |
| URL | /api/v1/mac-binding |
| Authentication | Bearer Token |
Request Headers:
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer your-auth-token | Yes |
Success Response (200 OK):
json
{
"success": true,
"data": [
{
"id": 1,
"subscriber_id": 1,
"subscriber_name": "John Doe",
"mac_address": "AA:BB:CC:DD:EE:FF",
"created_at": "2024-01-15 10:30:00"
}
]
}Fetch Subscriber MAC
Retrieve MAC binding for a specific subscriber.
| Property | Value |
|---|---|
| Endpoint | Fetch Subscriber MAC |
| Method | GET |
| URL | /api/v1/mac-binding/{id} |
| Authentication | Bearer Token |
Success Response (200 OK):
json
{
"success": true,
"data": {
"subscriber_id": 1,
"subscriber_name": "John Doe",
"mac_address": "AA:BB:CC:DD:EE:FF"
}
}Bind MAC
Bind a MAC address to a subscriber.
| Property | Value |
|---|---|
| Endpoint | Bind MAC |
| Method | POST |
| URL | /api/v1/mac-binding/bind |
| Authentication | Bearer Token |
Request Body:
json
{
"isp_id": 1,
"branch_id": 1,
"user_id": 1,
"subscriber_id": 1,
"mac_address": "AA:BB:CC:DD:EE:FF"
}| Parameter | Type | Required | Description |
|---|---|---|---|
subscriber_id | integer | Yes | Subscriber ID |
mac_address | string | Yes | MAC address to bind |
Success Response (200 OK):
json
{
"success": true,
"message": "MAC address bound successfully"
}Unbind MAC
Remove MAC binding from a subscriber.
| Property | Value |
|---|---|
| Endpoint | Unbind MAC |
| Method | POST |
| URL | /api/v1/mac-binding/unbind |
| Authentication | Bearer Token |
Request Body:
json
{
"isp_id": 1,
"branch_id": 1,
"user_id": 1,
"subscriber_id": 1
}Success Response (200 OK):
json
{
"success": true,
"message": "MAC address unbound successfully"
}