Appearance
User - ISPs
Base URL:
https://your-domain.com
Admin endpoints for managing ISP organizations. All endpoints require super admin authentication.
Fetch All ISPs
Retrieve all ISP organizations in the system.
| Property | Value |
|---|---|
| Endpoint | Fetch All ISPs |
| Method | GET |
| URL | /api/v1/isps |
| 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,
"name": "Main ISP",
"branch_count": 3,
"subscriber_count": 500,
"status": "active"
}
]
}Fetch ISP
Retrieve details of a specific ISP.
| Property | Value |
|---|---|
| Endpoint | Fetch ISP |
| Method | GET |
| URL | /api/v1/isps/{id} |
| Authentication | Bearer Token |
Success Response (200 OK):
json
{
"success": true,
"data": {
"id": 1,
"name": "Main ISP",
"address": "123 ISP Street",
"phone": "01712345678",
"branch_count": 3,
"subscriber_count": 500
}
}Create ISP
Create a new ISP organization.
| Property | Value |
|---|---|
| Endpoint | Create ISP |
| Method | POST |
| URL | /api/v1/isps |
| Authentication | Bearer Token |
Request Body:
json
{
"user_id": 1,
"name": "New ISP",
"address": "456 ISP Street"
}Success Response (201 Created):
json
{
"success": true,
"message": "ISP created successfully",
"data": {
"id": 2
}
}Update ISP
Update an existing ISP.
| Property | Value |
|---|---|
| Endpoint | Update ISP |
| Method | PUT |
| URL | /api/v1/isps/{id} |
| Authentication | Bearer Token |
Request Body:
json
{
"name": "Updated ISP"
}Success Response (200 OK):
json
{
"success": true,
"message": "ISP updated successfully"
}Delete ISP
Delete an ISP from the system.
| Property | Value |
|---|---|
| Endpoint | Delete ISP |
| Method | DELETE |
| URL | /api/v1/isps/{id} |
| Authentication | Bearer Token |
Success Response (200 OK):
json
{
"success": true,
"message": "ISP deleted successfully"
}