Introduction
REST API for the School Management System covering students, staff, classes, exams, attendance, fees, hostel, transport, timetable, and communication modules.
This documentation covers all REST API endpoints for the School Management System.
**Modules covered:**
- Student Management (students, enrollments, promotions, health records, documents)
- Staff Management
- Class Management (classes, batches, academic years)
- Subject Management (subjects, curriculum, class-subject mapping)
- Exam Management (exams, schedules, results, grades)
- Attendance Management
- Fee Management (fee structures, payments, discounts, expenses)
- Hostel & Transport Management
- Timetable Management
- RBAC Management (roles, permissions)
- Communication Management (messages, circulars, notifications)
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Attendance Management
GET api/studentAttendance
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentAttendance" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentAttendance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentAttendance';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentAttendance'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/studentAttendance
Example request:
curl --request POST \
"http://10.160.0.2/api/studentAttendance" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"date\": \"2026-05-03T17:54:46\",
\"status\": \"Present\",
\"batch_id\": 16,
\"remarks\": \"architecto\",
\"marked_by\": 16
}"
const url = new URL(
"http://10.160.0.2/api/studentAttendance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Present",
"batch_id": 16,
"remarks": "architecto",
"marked_by": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentAttendance';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'date' => '2026-05-03T17:54:46',
'status' => 'Present',
'batch_id' => 16,
'remarks' => 'architecto',
'marked_by' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentAttendance'
payload = {
"student_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Present",
"batch_id": 16,
"remarks": "architecto",
"marked_by": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentAttendance/{attendance_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentAttendance/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentAttendance/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentAttendance/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentAttendance/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/studentAttendance/{attendance_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/studentAttendance/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"date\": \"2026-05-03T17:54:46\",
\"status\": \"Absent\",
\"batch_id\": 16,
\"remarks\": \"architecto\",
\"marked_by\": 16
}"
const url = new URL(
"http://10.160.0.2/api/studentAttendance/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Absent",
"batch_id": 16,
"remarks": "architecto",
"marked_by": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentAttendance/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'date' => '2026-05-03T17:54:46',
'status' => 'Absent',
'batch_id' => 16,
'remarks' => 'architecto',
'marked_by' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentAttendance/1'
payload = {
"student_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Absent",
"batch_id": 16,
"remarks": "architecto",
"marked_by": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/studentAttendance/{attendance_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/studentAttendance/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentAttendance/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentAttendance/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentAttendance/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/teacherAttendance
Example request:
curl --request GET \
--get "http://10.160.0.2/api/teacherAttendance" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherAttendance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherAttendance';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherAttendance'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/teacherAttendance
Example request:
curl --request POST \
"http://10.160.0.2/api/teacherAttendance" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"staff_id\": 16,
\"date\": \"2026-05-03T17:54:46\",
\"status\": \"Leave\",
\"remarks\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/teacherAttendance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"staff_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Leave",
"remarks": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherAttendance';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'staff_id' => 16,
'date' => '2026-05-03T17:54:46',
'status' => 'Leave',
'remarks' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherAttendance'
payload = {
"staff_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Leave",
"remarks": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/teacherAttendance/{attendance_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/teacherAttendance/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherAttendance/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherAttendance/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherAttendance/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/teacherAttendance/{attendance_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/teacherAttendance/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"staff_id\": 16,
\"date\": \"2026-05-03T17:54:46\",
\"status\": \"Present\",
\"remarks\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/teacherAttendance/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"staff_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Present",
"remarks": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherAttendance/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'staff_id' => 16,
'date' => '2026-05-03T17:54:46',
'status' => 'Present',
'remarks' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherAttendance/1'
payload = {
"staff_id": 16,
"date": "2026-05-03T17:54:46",
"status": "Present",
"remarks": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/teacherAttendance/{attendance_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/teacherAttendance/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherAttendance/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherAttendance/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherAttendance/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentLeaveRequest
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentLeaveRequest" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentLeaveRequest"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentLeaveRequest';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentLeaveRequest'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/studentLeaveRequest
Example request:
curl --request POST \
"http://10.160.0.2/api/studentLeaveRequest" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"reason\": \"architecto\",
\"status\": \"Pending\",
\"applied_on\": \"2026-05-03T17:54:46\",
\"approved_by\": 16
}"
const url = new URL(
"http://10.160.0.2/api/studentLeaveRequest"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Pending",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentLeaveRequest';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'reason' => 'architecto',
'status' => 'Pending',
'applied_on' => '2026-05-03T17:54:46',
'approved_by' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentLeaveRequest'
payload = {
"student_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Pending",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentLeaveRequest/{leave_request_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentLeaveRequest/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentLeaveRequest/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentLeaveRequest/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentLeaveRequest/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/studentLeaveRequest/{leave_request_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/studentLeaveRequest/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"reason\": \"architecto\",
\"status\": \"Approved\",
\"applied_on\": \"2026-05-03T17:54:46\",
\"approved_by\": 16
}"
const url = new URL(
"http://10.160.0.2/api/studentLeaveRequest/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Approved",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentLeaveRequest/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'reason' => 'architecto',
'status' => 'Approved',
'applied_on' => '2026-05-03T17:54:46',
'approved_by' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentLeaveRequest/1'
payload = {
"student_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Approved",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/studentLeaveRequest/{leave_request_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/studentLeaveRequest/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentLeaveRequest/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentLeaveRequest/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentLeaveRequest/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/teacherLeaveRequest
Example request:
curl --request GET \
--get "http://10.160.0.2/api/teacherLeaveRequest" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherLeaveRequest"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherLeaveRequest';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherLeaveRequest'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/teacherLeaveRequest
Example request:
curl --request POST \
"http://10.160.0.2/api/teacherLeaveRequest" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"staff_id\": 16,
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"reason\": \"architecto\",
\"status\": \"Pending\",
\"applied_on\": \"2026-05-03T17:54:46\",
\"approved_by\": 16
}"
const url = new URL(
"http://10.160.0.2/api/teacherLeaveRequest"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"staff_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Pending",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherLeaveRequest';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'staff_id' => 16,
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'reason' => 'architecto',
'status' => 'Pending',
'applied_on' => '2026-05-03T17:54:46',
'approved_by' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherLeaveRequest'
payload = {
"staff_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Pending",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/teacherLeaveRequest/{leave_request_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/teacherLeaveRequest/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherLeaveRequest/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherLeaveRequest/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherLeaveRequest/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/teacherLeaveRequest/{leave_request_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/teacherLeaveRequest/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"staff_id\": 16,
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"reason\": \"architecto\",
\"status\": \"Approved\",
\"applied_on\": \"2026-05-03T17:54:46\",
\"approved_by\": 16
}"
const url = new URL(
"http://10.160.0.2/api/teacherLeaveRequest/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"staff_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Approved",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherLeaveRequest/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'staff_id' => 16,
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'reason' => 'architecto',
'status' => 'Approved',
'applied_on' => '2026-05-03T17:54:46',
'approved_by' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherLeaveRequest/1'
payload = {
"staff_id": 16,
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"reason": "architecto",
"status": "Approved",
"applied_on": "2026-05-03T17:54:46",
"approved_by": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/teacherLeaveRequest/{leave_request_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/teacherLeaveRequest/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherLeaveRequest/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherLeaveRequest/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherLeaveRequest/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/holiday
Example request:
curl --request GET \
--get "http://10.160.0.2/api/holiday" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/holiday"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/holiday';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/holiday'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/holiday
Example request:
curl --request POST \
"http://10.160.0.2/api/holiday" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"date\": \"2026-05-03T17:54:46\",
\"description\": \"Eius et animi quos velit et.\",
\"is_recurring\": false
}"
const url = new URL(
"http://10.160.0.2/api/holiday"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"date": "2026-05-03T17:54:46",
"description": "Eius et animi quos velit et.",
"is_recurring": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/holiday';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'b',
'date' => '2026-05-03T17:54:46',
'description' => 'Eius et animi quos velit et.',
'is_recurring' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/holiday'
payload = {
"title": "b",
"date": "2026-05-03T17:54:46",
"description": "Eius et animi quos velit et.",
"is_recurring": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/holiday/{holiday_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/holiday/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/holiday/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/holiday/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/holiday/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/holiday/{holiday_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/holiday/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"date\": \"2026-05-03T17:54:46\",
\"description\": \"Eius et animi quos velit et.\",
\"is_recurring\": false
}"
const url = new URL(
"http://10.160.0.2/api/holiday/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"date": "2026-05-03T17:54:46",
"description": "Eius et animi quos velit et.",
"is_recurring": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/holiday/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'b',
'date' => '2026-05-03T17:54:46',
'description' => 'Eius et animi quos velit et.',
'is_recurring' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/holiday/1'
payload = {
"title": "b",
"date": "2026-05-03T17:54:46",
"description": "Eius et animi quos velit et.",
"is_recurring": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/holiday/{holiday_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/holiday/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/holiday/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/holiday/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/holiday/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Class Management
GET api/classes
Example request:
curl --request GET \
--get "http://10.160.0.2/api/classes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classes';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classes'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/classes
Example request:
curl --request POST \
"http://10.160.0.2/api/classes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"class_name\": \"b\",
\"class_code\": \"ngzmiyvdljnikhwa\",
\"academic_year_id\": 16,
\"description\": \"Eius et animi quos velit et.\",
\"is_active\": false
}"
const url = new URL(
"http://10.160.0.2/api/classes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"class_name": "b",
"class_code": "ngzmiyvdljnikhwa",
"academic_year_id": 16,
"description": "Eius et animi quos velit et.",
"is_active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classes';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'class_name' => 'b',
'class_code' => 'ngzmiyvdljnikhwa',
'academic_year_id' => 16,
'description' => 'Eius et animi quos velit et.',
'is_active' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classes'
payload = {
"class_name": "b",
"class_code": "ngzmiyvdljnikhwa",
"academic_year_id": 16,
"description": "Eius et animi quos velit et.",
"is_active": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/classes/{schoolClass_class_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/classes/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classes/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classes/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classes/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/classes/{schoolClass_class_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/classes/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"class_name\": \"b\",
\"academic_year_id\": 16,
\"description\": \"Eius et animi quos velit et.\",
\"is_active\": false
}"
const url = new URL(
"http://10.160.0.2/api/classes/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"class_name": "b",
"academic_year_id": 16,
"description": "Eius et animi quos velit et.",
"is_active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classes/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'class_name' => 'b',
'academic_year_id' => 16,
'description' => 'Eius et animi quos velit et.',
'is_active' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classes/1'
payload = {
"class_name": "b",
"academic_year_id": 16,
"description": "Eius et animi quos velit et.",
"is_active": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/classes/{schoolClass_class_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/classes/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classes/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classes/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classes/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/sections
Example request:
curl --request GET \
--get "http://10.160.0.2/api/sections" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/sections"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/sections';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/sections'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/sections
Example request:
curl --request POST \
"http://10.160.0.2/api/sections" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"section_name\": \"bngzmi\",
\"class_id\": 16,
\"class_teacher_id\": 16,
\"capacity\": 39,
\"description\": \"Eius et animi quos velit et.\",
\"is_active\": false
}"
const url = new URL(
"http://10.160.0.2/api/sections"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"section_name": "bngzmi",
"class_id": 16,
"class_teacher_id": 16,
"capacity": 39,
"description": "Eius et animi quos velit et.",
"is_active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/sections';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'section_name' => 'bngzmi',
'class_id' => 16,
'class_teacher_id' => 16,
'capacity' => 39,
'description' => 'Eius et animi quos velit et.',
'is_active' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/sections'
payload = {
"section_name": "bngzmi",
"class_id": 16,
"class_teacher_id": 16,
"capacity": 39,
"description": "Eius et animi quos velit et.",
"is_active": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/sections/{section_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/sections/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/sections/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/sections/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/sections/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/sections/{section_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/sections/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"section_name\": \"bngzmi\",
\"class_id\": 16,
\"capacity\": 39,
\"description\": \"Eius et animi quos velit et.\",
\"is_active\": false
}"
const url = new URL(
"http://10.160.0.2/api/sections/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"section_name": "bngzmi",
"class_id": 16,
"capacity": 39,
"description": "Eius et animi quos velit et.",
"is_active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/sections/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'section_name' => 'bngzmi',
'class_id' => 16,
'capacity' => 39,
'description' => 'Eius et animi quos velit et.',
'is_active' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/sections/1'
payload = {
"section_name": "bngzmi",
"class_id": 16,
"capacity": 39,
"description": "Eius et animi quos velit et.",
"is_active": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/sections/{section_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/sections/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/sections/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/sections/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/sections/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/batches
Example request:
curl --request GET \
--get "http://10.160.0.2/api/batches" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/batches"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/batches';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/batches'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/batches
Example request:
curl --request POST \
"http://10.160.0.2/api/batches" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"class_id\": 16,
\"section_id\": 16,
\"academic_year_id\": 16,
\"batch_name\": \"n\",
\"batch_code\": \"gzmiyvdljnikhway\",
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"is_active\": true,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/batches"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"batch_name": "n",
"batch_code": "gzmiyvdljnikhway",
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"is_active": true,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/batches';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'class_id' => 16,
'section_id' => 16,
'academic_year_id' => 16,
'batch_name' => 'n',
'batch_code' => 'gzmiyvdljnikhway',
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'is_active' => true,
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/batches'
payload = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"batch_name": "n",
"batch_code": "gzmiyvdljnikhway",
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"is_active": true,
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/batches/{batch_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/batches/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/batches/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/batches/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/batches/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/batches/{batch_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/batches/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"class_id\": 16,
\"section_id\": 16,
\"academic_year_id\": 16,
\"batch_name\": \"n\",
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"start_time\": \"17:54\",
\"end_time\": \"2052-05-26\",
\"is_active\": false,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/batches/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"batch_name": "n",
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"start_time": "17:54",
"end_time": "2052-05-26",
"is_active": false,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/batches/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'class_id' => 16,
'section_id' => 16,
'academic_year_id' => 16,
'batch_name' => 'n',
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'start_time' => '17:54',
'end_time' => '2052-05-26',
'is_active' => false,
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/batches/1'
payload = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"batch_name": "n",
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"start_time": "17:54",
"end_time": "2052-05-26",
"is_active": false,
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/batches/{batch_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/batches/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/batches/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/batches/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/batches/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/academic-years
Example request:
curl --request GET \
--get "http://10.160.0.2/api/academic-years" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/academic-years"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/academic-years';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/academic-years'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/academic-years
Example request:
curl --request POST \
"http://10.160.0.2/api/academic-years" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"year_range\": \"bngzmiyvdljnikhw\",
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"is_current\": false,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/academic-years"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"year_range": "bngzmiyvdljnikhw",
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"is_current": false,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/academic-years';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'year_range' => 'bngzmiyvdljnikhw',
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'is_current' => false,
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/academic-years'
payload = {
"year_range": "bngzmiyvdljnikhw",
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"is_current": false,
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/academic-years/{academic_year_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/academic-years/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/academic-years/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/academic-years/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/academic-years/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/academic-years/{academic_year_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/academic-years/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-05-03T17:54:46\",
\"end_date\": \"2052-05-26\",
\"is_current\": false,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/academic-years/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"is_current": false,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/academic-years/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_date' => '2026-05-03T17:54:46',
'end_date' => '2052-05-26',
'is_current' => false,
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/academic-years/1'
payload = {
"start_date": "2026-05-03T17:54:46",
"end_date": "2052-05-26",
"is_current": false,
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/academic-years/{academic_year_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/academic-years/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/academic-years/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/academic-years/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/academic-years/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Communication Management
GET api/message
Example request:
curl --request GET \
--get "http://10.160.0.2/api/message" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/message"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/message';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/message'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/message
Example request:
curl --request POST \
"http://10.160.0.2/api/message" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"content\": \"architecto\",
\"message_type\": \"App Notification\",
\"scheduled_at\": \"2026-05-03T17:54:47\",
\"priority\": \"Normal\",
\"is_sent\": true
}"
const url = new URL(
"http://10.160.0.2/api/message"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"content": "architecto",
"message_type": "App Notification",
"scheduled_at": "2026-05-03T17:54:47",
"priority": "Normal",
"is_sent": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/message';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'b',
'content' => 'architecto',
'message_type' => 'App Notification',
'scheduled_at' => '2026-05-03T17:54:47',
'priority' => 'Normal',
'is_sent' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/message'
payload = {
"title": "b",
"content": "architecto",
"message_type": "App Notification",
"scheduled_at": "2026-05-03T17:54:47",
"priority": "Normal",
"is_sent": true
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/message/{message_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/message/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/message/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/message/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/message/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/message/{message_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/message/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"content\": \"architecto\",
\"message_type\": \"Email\",
\"scheduled_at\": \"2026-05-03T17:54:47\",
\"priority\": \"Low\",
\"is_sent\": false
}"
const url = new URL(
"http://10.160.0.2/api/message/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"content": "architecto",
"message_type": "Email",
"scheduled_at": "2026-05-03T17:54:47",
"priority": "Low",
"is_sent": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/message/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'b',
'content' => 'architecto',
'message_type' => 'Email',
'scheduled_at' => '2026-05-03T17:54:47',
'priority' => 'Low',
'is_sent' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/message/1'
payload = {
"title": "b",
"content": "architecto",
"message_type": "Email",
"scheduled_at": "2026-05-03T17:54:47",
"priority": "Low",
"is_sent": false
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/message/{message_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/message/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/message/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/message/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/message/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/messageRecipient
Example request:
curl --request GET \
--get "http://10.160.0.2/api/messageRecipient" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/messageRecipient"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/messageRecipient';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/messageRecipient'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/messageRecipient
Example request:
curl --request POST \
"http://10.160.0.2/api/messageRecipient" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"message_id\": \"architecto\",
\"user_id\": \"architecto\",
\"status\": \"Pending\",
\"delivered_at\": \"2026-05-03T17:54:47\",
\"read_at\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/messageRecipient"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"message_id": "architecto",
"user_id": "architecto",
"status": "Pending",
"delivered_at": "2026-05-03T17:54:47",
"read_at": "2026-05-03T17:54:47"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/messageRecipient';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'message_id' => 'architecto',
'user_id' => 'architecto',
'status' => 'Pending',
'delivered_at' => '2026-05-03T17:54:47',
'read_at' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/messageRecipient'
payload = {
"message_id": "architecto",
"user_id": "architecto",
"status": "Pending",
"delivered_at": "2026-05-03T17:54:47",
"read_at": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/messageRecipient/{recipient_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/messageRecipient/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/messageRecipient/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/messageRecipient/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/messageRecipient/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/messageRecipient/{recipient_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/messageRecipient/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"message_id\": \"architecto\",
\"user_id\": \"architecto\",
\"status\": \"Failed\",
\"delivered_at\": \"2026-05-03T17:54:47\",
\"read_at\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/messageRecipient/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"message_id": "architecto",
"user_id": "architecto",
"status": "Failed",
"delivered_at": "2026-05-03T17:54:47",
"read_at": "2026-05-03T17:54:47"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/messageRecipient/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'message_id' => 'architecto',
'user_id' => 'architecto',
'status' => 'Failed',
'delivered_at' => '2026-05-03T17:54:47',
'read_at' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/messageRecipient/1'
payload = {
"message_id": "architecto",
"user_id": "architecto",
"status": "Failed",
"delivered_at": "2026-05-03T17:54:47",
"read_at": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/messageRecipient/{recipient_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/messageRecipient/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/messageRecipient/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/messageRecipient/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/messageRecipient/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/circular
Example request:
curl --request GET \
--get "http://10.160.0.2/api/circular" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/circular"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/circular';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/circular'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/circular
Example request:
curl --request POST \
"http://10.160.0.2/api/circular" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"content\": \"architecto\",
\"issued_date\": \"2026-05-03T17:54:47\",
\"target_audience\": \"Teachers\",
\"attachment_url\": \"http:\\/\\/bailey.com\\/\"
}"
const url = new URL(
"http://10.160.0.2/api/circular"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"content": "architecto",
"issued_date": "2026-05-03T17:54:47",
"target_audience": "Teachers",
"attachment_url": "http:\/\/bailey.com\/"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/circular';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'b',
'content' => 'architecto',
'issued_date' => '2026-05-03T17:54:47',
'target_audience' => 'Teachers',
'attachment_url' => 'http://bailey.com/',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/circular'
payload = {
"title": "b",
"content": "architecto",
"issued_date": "2026-05-03T17:54:47",
"target_audience": "Teachers",
"attachment_url": "http:\/\/bailey.com\/"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/circular/{circular_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/circular/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/circular/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/circular/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/circular/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/circular/{circular_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/circular/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"content\": \"architecto\",
\"issued_date\": \"2026-05-03T17:54:47\",
\"target_audience\": \"All\",
\"attachment_url\": \"http:\\/\\/bailey.com\\/\"
}"
const url = new URL(
"http://10.160.0.2/api/circular/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"content": "architecto",
"issued_date": "2026-05-03T17:54:47",
"target_audience": "All",
"attachment_url": "http:\/\/bailey.com\/"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/circular/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'b',
'content' => 'architecto',
'issued_date' => '2026-05-03T17:54:47',
'target_audience' => 'All',
'attachment_url' => 'http://bailey.com/',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/circular/1'
payload = {
"title": "b",
"content": "architecto",
"issued_date": "2026-05-03T17:54:47",
"target_audience": "All",
"attachment_url": "http:\/\/bailey.com\/"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/circular/{circular_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/circular/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/circular/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/circular/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/circular/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/notificationSetting
Example request:
curl --request GET \
--get "http://10.160.0.2/api/notificationSetting" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/notificationSetting"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/notificationSetting';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/notificationSetting'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/notificationSetting
Example request:
curl --request POST \
"http://10.160.0.2/api/notificationSetting" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": \"architecto\",
\"allow_sms\": true,
\"allow_email\": false,
\"allow_app\": false,
\"allow_announcements\": false,
\"allow_circulars\": true
}"
const url = new URL(
"http://10.160.0.2/api/notificationSetting"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": "architecto",
"allow_sms": true,
"allow_email": false,
"allow_app": false,
"allow_announcements": false,
"allow_circulars": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/notificationSetting';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'user_id' => 'architecto',
'allow_sms' => true,
'allow_email' => false,
'allow_app' => false,
'allow_announcements' => false,
'allow_circulars' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/notificationSetting'
payload = {
"user_id": "architecto",
"allow_sms": true,
"allow_email": false,
"allow_app": false,
"allow_announcements": false,
"allow_circulars": true
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/notificationSetting/{setting_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/notificationSetting/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/notificationSetting/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/notificationSetting/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/notificationSetting/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/notificationSetting/{setting_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/notificationSetting/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"allow_sms\": false,
\"allow_email\": true,
\"allow_app\": false,
\"allow_announcements\": false,
\"allow_circulars\": true
}"
const url = new URL(
"http://10.160.0.2/api/notificationSetting/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"allow_sms": false,
"allow_email": true,
"allow_app": false,
"allow_announcements": false,
"allow_circulars": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/notificationSetting/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'allow_sms' => false,
'allow_email' => true,
'allow_app' => false,
'allow_announcements' => false,
'allow_circulars' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/notificationSetting/1'
payload = {
"allow_sms": false,
"allow_email": true,
"allow_app": false,
"allow_announcements": false,
"allow_circulars": true
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/notificationSetting/{setting_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/notificationSetting/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/notificationSetting/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/notificationSetting/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/notificationSetting/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exam Management
GET api/exam
Example request:
curl --request GET \
--get "http://10.160.0.2/api/exam" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/exam"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/exam';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/exam'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/exam
Example request:
curl --request POST \
"http://10.160.0.2/api/exam" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/exam"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/exam';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/exam'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/exam/{exam_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/exam/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/exam/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/exam/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/exam/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/exam/{exam_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/exam/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/exam/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/exam/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/exam/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/exam/{exam_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/exam/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/exam/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/exam/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/exam/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/examSchedule
Example request:
curl --request GET \
--get "http://10.160.0.2/api/examSchedule" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/examSchedule"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/examSchedule';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/examSchedule'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/examSchedule
Example request:
curl --request POST \
"http://10.160.0.2/api/examSchedule" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/examSchedule"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/examSchedule';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/examSchedule'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/examSchedule/{schedule_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/examSchedule/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/examSchedule/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/examSchedule/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/examSchedule/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/examSchedule/{schedule_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/examSchedule/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/examSchedule/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/examSchedule/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/examSchedule/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/examSchedule/{schedule_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/examSchedule/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/examSchedule/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/examSchedule/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/examSchedule/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/gradingScheme
Example request:
curl --request GET \
--get "http://10.160.0.2/api/gradingScheme" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/gradingScheme"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/gradingScheme';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/gradingScheme'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/gradingScheme
Example request:
curl --request POST \
"http://10.160.0.2/api/gradingScheme" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/gradingScheme"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/gradingScheme';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/gradingScheme'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/gradingScheme/{grading_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/gradingScheme/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/gradingScheme/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/gradingScheme/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/gradingScheme/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/gradingScheme/{grading_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/gradingScheme/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/gradingScheme/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/gradingScheme/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/gradingScheme/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/gradingScheme/{grading_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/gradingScheme/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/gradingScheme/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/gradingScheme/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/gradingScheme/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentMark
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentMark" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentMark"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentMark';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentMark'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/studentMark
Example request:
curl --request POST \
"http://10.160.0.2/api/studentMark" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentMark"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentMark';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentMark'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentMark/{mark_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentMark/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentMark/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentMark/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentMark/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/studentMark/{mark_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/studentMark/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentMark/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentMark/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentMark/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/studentMark/{mark_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/studentMark/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentMark/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentMark/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentMark/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentReportCard
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentReportCard" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentReportCard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentReportCard';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentReportCard'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/studentReportCard
Example request:
curl --request POST \
"http://10.160.0.2/api/studentReportCard" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentReportCard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentReportCard';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentReportCard'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentReportCard/{report_card_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentReportCard/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentReportCard/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentReportCard/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentReportCard/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/studentReportCard/{report_card_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/studentReportCard/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentReportCard/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentReportCard/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentReportCard/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/studentReportCard/{report_card_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/studentReportCard/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentReportCard/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentReportCard/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentReportCard/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fee Management
GET api/feeCategory
Example request:
curl --request GET \
--get "http://10.160.0.2/api/feeCategory" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeCategory"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeCategory';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeCategory'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/feeCategory
Example request:
curl --request POST \
"http://10.160.0.2/api/feeCategory" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeCategory"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeCategory';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeCategory'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/feeCategory/{fee_category_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/feeCategory/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeCategory/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeCategory/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeCategory/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/feeCategory/{fee_category_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/feeCategory/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeCategory/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeCategory/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeCategory/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/feeCategory/{fee_category_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/feeCategory/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeCategory/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeCategory/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeCategory/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/feeStructure
Example request:
curl --request GET \
--get "http://10.160.0.2/api/feeStructure" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeStructure"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeStructure';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeStructure'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/feeStructure
Example request:
curl --request POST \
"http://10.160.0.2/api/feeStructure" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeStructure"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeStructure';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeStructure'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/feeStructure/{fee_structure_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/feeStructure/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeStructure/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeStructure/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeStructure/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/feeStructure/{fee_structure_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/feeStructure/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeStructure/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeStructure/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeStructure/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/feeStructure/{fee_structure_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/feeStructure/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feeStructure/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feeStructure/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feeStructure/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentFee
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentFee" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentFee"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentFee';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentFee'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/studentFee
Example request:
curl --request POST \
"http://10.160.0.2/api/studentFee" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentFee"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentFee';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentFee'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentFee/{student_fee_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentFee/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentFee/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentFee/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentFee/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/studentFee/{student_fee_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/studentFee/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentFee/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentFee/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentFee/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/studentFee/{student_fee_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/studentFee/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentFee/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentFee/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentFee/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/feePayment
Example request:
curl --request GET \
--get "http://10.160.0.2/api/feePayment" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feePayment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feePayment';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feePayment'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/feePayment
Example request:
curl --request POST \
"http://10.160.0.2/api/feePayment" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feePayment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feePayment';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feePayment'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/feePayment/{payment_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/feePayment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feePayment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feePayment/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feePayment/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/feePayment/{payment_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/feePayment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feePayment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feePayment/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feePayment/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/feePayment/{payment_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/feePayment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/feePayment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/feePayment/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/feePayment/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/discount
Example request:
curl --request GET \
--get "http://10.160.0.2/api/discount" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/discount"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/discount';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/discount'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/discount
Example request:
curl --request POST \
"http://10.160.0.2/api/discount" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/discount"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/discount';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/discount'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/discount/{discount_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/discount/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/discount/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/discount/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/discount/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/discount/{discount_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/discount/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/discount/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/discount/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/discount/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/discount/{discount_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/discount/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/discount/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/discount/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/discount/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentDiscount
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentDiscount" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentDiscount"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentDiscount';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentDiscount'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/studentDiscount
Example request:
curl --request POST \
"http://10.160.0.2/api/studentDiscount" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentDiscount"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentDiscount';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentDiscount'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/studentDiscount/{student_discount_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/studentDiscount/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentDiscount/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentDiscount/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentDiscount/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/studentDiscount/{student_discount_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/studentDiscount/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentDiscount/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentDiscount/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentDiscount/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/studentDiscount/{student_discount_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/studentDiscount/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/studentDiscount/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/studentDiscount/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/studentDiscount/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/expense
Example request:
curl --request GET \
--get "http://10.160.0.2/api/expense" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/expense"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/expense';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/expense'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/expense
Example request:
curl --request POST \
"http://10.160.0.2/api/expense" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/expense"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/expense';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/expense'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/expense/{expense_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/expense/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/expense/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/expense/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/expense/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/expense/{expense_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/expense/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/expense/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/expense/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/expense/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/expense/{expense_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/expense/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/expense/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/expense/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/expense/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/financialReport
Example request:
curl --request GET \
--get "http://10.160.0.2/api/financialReport" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/financialReport"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/financialReport';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/financialReport'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/financialReport
Example request:
curl --request POST \
"http://10.160.0.2/api/financialReport" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/financialReport"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/financialReport';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/financialReport'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/financialReport/{report_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/financialReport/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/financialReport/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/financialReport/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/financialReport/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/financialReport/{report_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/financialReport/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/financialReport/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/financialReport/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/financialReport/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/financialReport/{report_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/financialReport/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/financialReport/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/financialReport/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/financialReport/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Hostel & Transport Management
GET api/hostels
Example request:
curl --request GET \
--get "http://10.160.0.2/api/hostels" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/hostels"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostels';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostels'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/hostels
Example request:
curl --request POST \
"http://10.160.0.2/api/hostels" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hostel_name\": \"b\",
\"hostel_type\": \"Co-ed\",
\"total_capacity\": 22,
\"available_capacity\": 84,
\"location\": \"z\"
}"
const url = new URL(
"http://10.160.0.2/api/hostels"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hostel_name": "b",
"hostel_type": "Co-ed",
"total_capacity": 22,
"available_capacity": 84,
"location": "z"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostels';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'hostel_name' => 'b',
'hostel_type' => 'Co-ed',
'total_capacity' => 22,
'available_capacity' => 84,
'location' => 'z',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostels'
payload = {
"hostel_name": "b",
"hostel_type": "Co-ed",
"total_capacity": 22,
"available_capacity": 84,
"location": "z"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/hostels/{hostel_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/hostels/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/hostels/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostels/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostels/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/hostels/{hostel_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/hostels/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hostel_name\": \"b\",
\"hostel_type\": \"Co-ed\",
\"total_capacity\": 22,
\"available_capacity\": 84,
\"location\": \"z\"
}"
const url = new URL(
"http://10.160.0.2/api/hostels/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hostel_name": "b",
"hostel_type": "Co-ed",
"total_capacity": 22,
"available_capacity": 84,
"location": "z"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostels/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'hostel_name' => 'b',
'hostel_type' => 'Co-ed',
'total_capacity' => 22,
'available_capacity' => 84,
'location' => 'z',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostels/1'
payload = {
"hostel_name": "b",
"hostel_type": "Co-ed",
"total_capacity": 22,
"available_capacity": 84,
"location": "z"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/hostels/{hostel_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/hostels/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/hostels/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostels/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostels/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/hostel-rooms
Example request:
curl --request GET \
--get "http://10.160.0.2/api/hostel-rooms" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/hostel-rooms"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostel-rooms';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostel-rooms'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/hostel-rooms
Example request:
curl --request POST \
"http://10.160.0.2/api/hostel-rooms" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hostel_id\": 16,
\"room_number\": \"ngzmiy\",
\"room_type\": \"Single\",
\"capacity\": 16,
\"occupied\": 42
}"
const url = new URL(
"http://10.160.0.2/api/hostel-rooms"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hostel_id": 16,
"room_number": "ngzmiy",
"room_type": "Single",
"capacity": 16,
"occupied": 42
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostel-rooms';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'hostel_id' => 16,
'room_number' => 'ngzmiy',
'room_type' => 'Single',
'capacity' => 16,
'occupied' => 42,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostel-rooms'
payload = {
"hostel_id": 16,
"room_number": "ngzmiy",
"room_type": "Single",
"capacity": 16,
"occupied": 42
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/hostel-rooms/{room_room_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/hostel-rooms/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/hostel-rooms/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostel-rooms/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostel-rooms/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/hostel-rooms/{room_room_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/hostel-rooms/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hostel_id\": 16,
\"room_number\": \"ngzmiy\",
\"room_type\": \"Triple\",
\"capacity\": 16,
\"occupied\": 42
}"
const url = new URL(
"http://10.160.0.2/api/hostel-rooms/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hostel_id": 16,
"room_number": "ngzmiy",
"room_type": "Triple",
"capacity": 16,
"occupied": 42
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostel-rooms/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'hostel_id' => 16,
'room_number' => 'ngzmiy',
'room_type' => 'Triple',
'capacity' => 16,
'occupied' => 42,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostel-rooms/1'
payload = {
"hostel_id": 16,
"room_number": "ngzmiy",
"room_type": "Triple",
"capacity": 16,
"occupied": 42
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/hostel-rooms/{room_room_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/hostel-rooms/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/hostel-rooms/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/hostel-rooms/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/hostel-rooms/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/student-hostels
Example request:
curl --request GET \
--get "http://10.160.0.2/api/student-hostels" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/student-hostels"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-hostels';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-hostels'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/student-hostels
Example request:
curl --request POST \
"http://10.160.0.2/api/student-hostels" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"hostel_id\": 16,
\"room_id\": 16,
\"assigned_date\": \"2026-05-03T17:54:47\",
\"checkout_date\": \"2052-05-26\"
}"
const url = new URL(
"http://10.160.0.2/api/student-hostels"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"hostel_id": 16,
"room_id": 16,
"assigned_date": "2026-05-03T17:54:47",
"checkout_date": "2052-05-26"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-hostels';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'hostel_id' => 16,
'room_id' => 16,
'assigned_date' => '2026-05-03T17:54:47',
'checkout_date' => '2052-05-26',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-hostels'
payload = {
"student_id": 16,
"hostel_id": 16,
"room_id": 16,
"assigned_date": "2026-05-03T17:54:47",
"checkout_date": "2052-05-26"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/student-hostels/{studentHostel_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/student-hostels/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/student-hostels/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-hostels/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-hostels/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/student-hostels/{studentHostel_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/student-hostels/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"hostel_id\": 16,
\"room_id\": 16,
\"assigned_date\": \"2026-05-03T17:54:47\",
\"checkout_date\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/student-hostels/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"hostel_id": 16,
"room_id": 16,
"assigned_date": "2026-05-03T17:54:47",
"checkout_date": "2026-05-03T17:54:47"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-hostels/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'hostel_id' => 16,
'room_id' => 16,
'assigned_date' => '2026-05-03T17:54:47',
'checkout_date' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-hostels/1'
payload = {
"student_id": 16,
"hostel_id": 16,
"room_id": 16,
"assigned_date": "2026-05-03T17:54:47",
"checkout_date": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/student-hostels/{studentHostel_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/student-hostels/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/student-hostels/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-hostels/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-hostels/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/transportation
Example request:
curl --request GET \
--get "http://10.160.0.2/api/transportation" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/transportation"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/transportation';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/transportation'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/transportation
Example request:
curl --request POST \
"http://10.160.0.2/api/transportation" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"transport_name\": \"b\",
\"transport_type\": \"Van\",
\"capacity\": 22,
\"route\": \"g\",
\"departure_time\": \"17:54\"
}"
const url = new URL(
"http://10.160.0.2/api/transportation"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"transport_name": "b",
"transport_type": "Van",
"capacity": 22,
"route": "g",
"departure_time": "17:54"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/transportation';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'transport_name' => 'b',
'transport_type' => 'Van',
'capacity' => 22,
'route' => 'g',
'departure_time' => '17:54',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/transportation'
payload = {
"transport_name": "b",
"transport_type": "Van",
"capacity": 22,
"route": "g",
"departure_time": "17:54"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/transportation/{transport_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/transportation/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/transportation/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/transportation/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/transportation/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/transportation/{transport_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/transportation/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"transport_name\": \"b\",
\"transport_type\": \"Shuttle\",
\"capacity\": 22,
\"route\": \"g\",
\"departure_time\": \"17:54\"
}"
const url = new URL(
"http://10.160.0.2/api/transportation/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"transport_name": "b",
"transport_type": "Shuttle",
"capacity": 22,
"route": "g",
"departure_time": "17:54"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/transportation/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'transport_name' => 'b',
'transport_type' => 'Shuttle',
'capacity' => 22,
'route' => 'g',
'departure_time' => '17:54',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/transportation/1'
payload = {
"transport_name": "b",
"transport_type": "Shuttle",
"capacity": 22,
"route": "g",
"departure_time": "17:54"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/transportation/{transport_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/transportation/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/transportation/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/transportation/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/transportation/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/student-transport
Example request:
curl --request GET \
--get "http://10.160.0.2/api/student-transport" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/student-transport"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-transport';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-transport'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/student-transport
Example request:
curl --request POST \
"http://10.160.0.2/api/student-transport" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"transport_id\": 16,
\"pickup_location\": \"n\",
\"drop_location\": \"g\",
\"assigned_date\": \"2026-05-03T17:54:47\",
\"leave_date\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/student-transport"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"transport_id": 16,
"pickup_location": "n",
"drop_location": "g",
"assigned_date": "2026-05-03T17:54:47",
"leave_date": "2026-05-03T17:54:47"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-transport';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'transport_id' => 16,
'pickup_location' => 'n',
'drop_location' => 'g',
'assigned_date' => '2026-05-03T17:54:47',
'leave_date' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-transport'
payload = {
"student_id": 16,
"transport_id": 16,
"pickup_location": "n",
"drop_location": "g",
"assigned_date": "2026-05-03T17:54:47",
"leave_date": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/student-transport/{studentTransport_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/student-transport/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/student-transport/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-transport/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-transport/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/student-transport/{studentTransport_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/student-transport/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"transport_id\": 16,
\"pickup_location\": \"n\",
\"drop_location\": \"g\",
\"assigned_date\": \"2026-05-03T17:54:47\",
\"leave_date\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/student-transport/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"transport_id": 16,
"pickup_location": "n",
"drop_location": "g",
"assigned_date": "2026-05-03T17:54:47",
"leave_date": "2026-05-03T17:54:47"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-transport/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'transport_id' => 16,
'pickup_location' => 'n',
'drop_location' => 'g',
'assigned_date' => '2026-05-03T17:54:47',
'leave_date' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-transport/1'
payload = {
"student_id": 16,
"transport_id": 16,
"pickup_location": "n",
"drop_location": "g",
"assigned_date": "2026-05-03T17:54:47",
"leave_date": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/student-transport/{studentTransport_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/student-transport/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/student-transport/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/student-transport/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/student-transport/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/facilities
Example request:
curl --request GET \
--get "http://10.160.0.2/api/facilities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/facilities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facilities';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facilities'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/facilities
Example request:
curl --request POST \
"http://10.160.0.2/api/facilities" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"facility_name\": \"b\",
\"facility_type\": \"Sports\",
\"location\": \"n\",
\"capacity\": 67,
\"available_capacity\": 12
}"
const url = new URL(
"http://10.160.0.2/api/facilities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"facility_name": "b",
"facility_type": "Sports",
"location": "n",
"capacity": 67,
"available_capacity": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facilities';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'facility_name' => 'b',
'facility_type' => 'Sports',
'location' => 'n',
'capacity' => 67,
'available_capacity' => 12,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facilities'
payload = {
"facility_name": "b",
"facility_type": "Sports",
"location": "n",
"capacity": 67,
"available_capacity": 12
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/facilities/{facility_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/facilities/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/facilities/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facilities/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facilities/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/facilities/{facility_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/facilities/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"facility_name\": \"b\",
\"facility_type\": \"Cafeteria\",
\"location\": \"n\",
\"capacity\": 67,
\"available_capacity\": 12
}"
const url = new URL(
"http://10.160.0.2/api/facilities/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"facility_name": "b",
"facility_type": "Cafeteria",
"location": "n",
"capacity": 67,
"available_capacity": 12
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facilities/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'facility_name' => 'b',
'facility_type' => 'Cafeteria',
'location' => 'n',
'capacity' => 67,
'available_capacity' => 12,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facilities/1'
payload = {
"facility_name": "b",
"facility_type": "Cafeteria",
"location": "n",
"capacity": 67,
"available_capacity": 12
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/facilities/{facility_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/facilities/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/facilities/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facilities/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facilities/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/facility-bookings
Example request:
curl --request GET \
--get "http://10.160.0.2/api/facility-bookings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/facility-bookings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facility-bookings';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facility-bookings'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/facility-bookings
Example request:
curl --request POST \
"http://10.160.0.2/api/facility-bookings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"facility_id\": 16,
\"booking_date\": \"2026-05-03T17:54:47\",
\"start_time\": \"17:54\",
\"end_time\": \"2052-05-26\"
}"
const url = new URL(
"http://10.160.0.2/api/facility-bookings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"facility_id": 16,
"booking_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "2052-05-26"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facility-bookings';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'facility_id' => 16,
'booking_date' => '2026-05-03T17:54:47',
'start_time' => '17:54',
'end_time' => '2052-05-26',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facility-bookings'
payload = {
"student_id": 16,
"facility_id": 16,
"booking_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "2052-05-26"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/facility-bookings/{facilityBooking_booking_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/facility-bookings/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/facility-bookings/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facility-bookings/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facility-bookings/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/facility-bookings/{facilityBooking_booking_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/facility-bookings/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"student_id\": 16,
\"facility_id\": 16,
\"booking_date\": \"2026-05-03T17:54:47\",
\"start_time\": \"17:54\",
\"end_time\": \"17:54\"
}"
const url = new URL(
"http://10.160.0.2/api/facility-bookings/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"student_id": 16,
"facility_id": 16,
"booking_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "17:54"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facility-bookings/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'student_id' => 16,
'facility_id' => 16,
'booking_date' => '2026-05-03T17:54:47',
'start_time' => '17:54',
'end_time' => '17:54',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facility-bookings/1'
payload = {
"student_id": 16,
"facility_id": 16,
"booking_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "17:54"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/facility-bookings/{facilityBooking_booking_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/facility-bookings/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/facility-bookings/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/facility-bookings/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/facility-bookings/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
RBAC Management
GET api/roles
Example request:
curl --request GET \
--get "http://10.160.0.2/api/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/roles';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/roles'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/roles
Example request:
curl --request POST \
"http://10.160.0.2/api/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/roles';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'b',
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/roles'
payload = {
"name": "b",
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/roles/{id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/roles/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/roles/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/roles/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/roles/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/roles/{id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/roles/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/roles/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/roles/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/roles/1'
payload = {
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/roles/{id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/roles/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/roles/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/roles/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/roles/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/roles/{role_id}/sync-permissions
Example request:
curl --request PUT \
"http://10.160.0.2/api/roles/1/sync-permissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://10.160.0.2/api/roles/1/sync-permissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/roles/1/sync-permissions';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/roles/1/sync-permissions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/permissions
Example request:
curl --request GET \
--get "http://10.160.0.2/api/permissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/permissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/permissions';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/permissions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/permissions
Example request:
curl --request POST \
"http://10.160.0.2/api/permissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\",
\"module_name\": \"v\"
}"
const url = new URL(
"http://10.160.0.2/api/permissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et.",
"module_name": "v"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/permissions';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'b',
'description' => 'Eius et animi quos velit et.',
'module_name' => 'v',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/permissions'
payload = {
"name": "b",
"description": "Eius et animi quos velit et.",
"module_name": "v"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/permissions/{id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/permissions/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/permissions/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/permissions/{id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Eius et animi quos velit et.\",
\"module_name\": \"v\"
}"
const url = new URL(
"http://10.160.0.2/api/permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Eius et animi quos velit et.",
"module_name": "v"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/permissions/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'description' => 'Eius et animi quos velit et.',
'module_name' => 'v',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/permissions/1'
payload = {
"description": "Eius et animi quos velit et.",
"module_name": "v"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/permissions/{id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/permissions/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/permissions/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/role-permissions
Example request:
curl --request GET \
--get "http://10.160.0.2/api/role-permissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/role-permissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/role-permissions';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/role-permissions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/role-permissions/{role_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/role-permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/role-permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/role-permissions/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/role-permissions/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/role-permissions/{role_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/role-permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://10.160.0.2/api/role-permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/role-permissions/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/role-permissions/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/user-roles
Example request:
curl --request GET \
--get "http://10.160.0.2/api/user-roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/user-roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/user-roles';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/user-roles'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/user-roles/{user_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/user-roles/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/user-roles/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/user-roles/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/user-roles/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/user-roles/{user_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/user-roles/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://10.160.0.2/api/user-roles/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/user-roles/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/user-roles/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/user-permissions/{user_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/user-permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/user-permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/user-permissions/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/user-permissions/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/user-permissions/{user_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/user-permissions/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://10.160.0.2/api/user-permissions/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/user-permissions/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/user-permissions/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Staff Management
GET api/staff/departments
Example request:
curl --request GET \
--get "http://10.160.0.2/api/staff/departments" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/departments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/departments';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/departments'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/staff/departments
Example request:
curl --request POST \
"http://10.160.0.2/api/staff/departments" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/departments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/departments';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/departments'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/staff
Example request:
curl --request GET \
--get "http://10.160.0.2/api/staff" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/staff
Example request:
curl --request POST \
"http://10.160.0.2/api/staff" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/staff/{staff_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/staff/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/staff/{staff_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/staff/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/staff/{staff_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/staff/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/staff/{staff_staff_id}/attendance
Example request:
curl --request POST \
"http://10.160.0.2/api/staff/1/attendance" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/1/attendance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1/attendance';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1/attendance'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/staff/{staff_staff_id}/salary
Example request:
curl --request POST \
"http://10.160.0.2/api/staff/1/salary" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"basic_salary\": 1,
\"allowances\": 1,
\"deductions\": 0,
\"net_salary\": 1,
\"payment_date\": \"2026-05-03T17:54:46\"
}"
const url = new URL(
"http://10.160.0.2/api/staff/1/salary"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"basic_salary": 1,
"allowances": 1,
"deductions": 0,
"net_salary": 1,
"payment_date": "2026-05-03T17:54:46"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1/salary';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'basic_salary' => 1,
'allowances' => 1,
'deductions' => 0,
'net_salary' => 1,
'payment_date' => '2026-05-03T17:54:46',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1/salary'
payload = {
"basic_salary": 1,
"allowances": 1,
"deductions": 0,
"net_salary": 1,
"payment_date": "2026-05-03T17:54:46"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/staff/{staff_staff_id}/reviews
Example request:
curl --request POST \
"http://10.160.0.2/api/staff/1/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/1/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1/reviews';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1/reviews'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/staff/{staff_staff_id}/leave-requests
Example request:
curl --request POST \
"http://10.160.0.2/api/staff/1/leave-requests" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/staff/1/leave-requests"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/staff/1/leave-requests';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/staff/1/leave-requests'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Student Management
GET api/students
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students
Example request:
curl --request POST \
"http://10.160.0.2/api/students" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"b\",
\"last_name\": \"n\",
\"date_of_birth\": \"2026-05-03T17:54:46\",
\"gender\": \"Female\",
\"blood_group\": \"g\",
\"nationality\": \"z\",
\"religion\": \"m\",
\"current_address\": \"architecto\",
\"permanent_address\": \"architecto\",
\"phone_number\": \"ngzmiyvdljnikhwa\",
\"email\": \"breitenberg.gilbert@example.com\",
\"profile_photo\": \"u\",
\"date_of_admission\": \"2026-05-03T17:54:46\",
\"admission_number\": \"w\",
\"status\": \"Graduated\",
\"father_name\": \"p\",
\"father_phone\": \"wlvqwrsitcpscqld\",
\"father_email\": \"nstokes@example.org\",
\"father_occupation\": \"w\",
\"mother_name\": \"t\",
\"mother_phone\": \"ujwvlxjklqppwqbe\",
\"mother_email\": \"kutch.cynthia@example.org\",
\"mother_occupation\": \"q\",
\"guardian_name\": \"i\",
\"guardian_relationship\": \"t\",
\"guardian_phone\": \"pxntltcvipojsaus\",
\"guardian_address\": \"architecto\",
\"height_cm\": 1,
\"weight_kg\": 0,
\"allergies\": \"architecto\",
\"medical_conditions\": \"architecto\",
\"vaccination_status\": \"n\",
\"previous_educations\": [
{
\"school_name\": \"g\",
\"board\": \"z\",
\"class_completed\": \"miyvdljnikhwaykc\",
\"percentage\": 0,
\"year_of_passing\": \"9775\"
}
]
}"
const url = new URL(
"http://10.160.0.2/api/students"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "b",
"last_name": "n",
"date_of_birth": "2026-05-03T17:54:46",
"gender": "Female",
"blood_group": "g",
"nationality": "z",
"religion": "m",
"current_address": "architecto",
"permanent_address": "architecto",
"phone_number": "ngzmiyvdljnikhwa",
"email": "breitenberg.gilbert@example.com",
"profile_photo": "u",
"date_of_admission": "2026-05-03T17:54:46",
"admission_number": "w",
"status": "Graduated",
"father_name": "p",
"father_phone": "wlvqwrsitcpscqld",
"father_email": "nstokes@example.org",
"father_occupation": "w",
"mother_name": "t",
"mother_phone": "ujwvlxjklqppwqbe",
"mother_email": "kutch.cynthia@example.org",
"mother_occupation": "q",
"guardian_name": "i",
"guardian_relationship": "t",
"guardian_phone": "pxntltcvipojsaus",
"guardian_address": "architecto",
"height_cm": 1,
"weight_kg": 0,
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n",
"previous_educations": [
{
"school_name": "g",
"board": "z",
"class_completed": "miyvdljnikhwaykc",
"percentage": 0,
"year_of_passing": "9775"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'first_name' => 'b',
'last_name' => 'n',
'date_of_birth' => '2026-05-03T17:54:46',
'gender' => 'Female',
'blood_group' => 'g',
'nationality' => 'z',
'religion' => 'm',
'current_address' => 'architecto',
'permanent_address' => 'architecto',
'phone_number' => 'ngzmiyvdljnikhwa',
'email' => 'breitenberg.gilbert@example.com',
'profile_photo' => 'u',
'date_of_admission' => '2026-05-03T17:54:46',
'admission_number' => 'w',
'status' => 'Graduated',
'father_name' => 'p',
'father_phone' => 'wlvqwrsitcpscqld',
'father_email' => 'nstokes@example.org',
'father_occupation' => 'w',
'mother_name' => 't',
'mother_phone' => 'ujwvlxjklqppwqbe',
'mother_email' => 'kutch.cynthia@example.org',
'mother_occupation' => 'q',
'guardian_name' => 'i',
'guardian_relationship' => 't',
'guardian_phone' => 'pxntltcvipojsaus',
'guardian_address' => 'architecto',
'height_cm' => 1,
'weight_kg' => 0,
'allergies' => 'architecto',
'medical_conditions' => 'architecto',
'vaccination_status' => 'n',
'previous_educations' => [
[
'school_name' => 'g',
'board' => 'z',
'class_completed' => 'miyvdljnikhwaykc',
'percentage' => 0,
'year_of_passing' => '9775',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students'
payload = {
"first_name": "b",
"last_name": "n",
"date_of_birth": "2026-05-03T17:54:46",
"gender": "Female",
"blood_group": "g",
"nationality": "z",
"religion": "m",
"current_address": "architecto",
"permanent_address": "architecto",
"phone_number": "ngzmiyvdljnikhwa",
"email": "breitenberg.gilbert@example.com",
"profile_photo": "u",
"date_of_admission": "2026-05-03T17:54:46",
"admission_number": "w",
"status": "Graduated",
"father_name": "p",
"father_phone": "wlvqwrsitcpscqld",
"father_email": "nstokes@example.org",
"father_occupation": "w",
"mother_name": "t",
"mother_phone": "ujwvlxjklqppwqbe",
"mother_email": "kutch.cynthia@example.org",
"mother_occupation": "q",
"guardian_name": "i",
"guardian_relationship": "t",
"guardian_phone": "pxntltcvipojsaus",
"guardian_address": "architecto",
"height_cm": 1,
"weight_kg": 0,
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n",
"previous_educations": [
{
"school_name": "g",
"board": "z",
"class_completed": "miyvdljnikhwaykc",
"percentage": 0,
"year_of_passing": "9775"
}
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"b\",
\"last_name\": \"n\",
\"date_of_birth\": \"2026-05-03T17:54:46\",
\"gender\": \"Other\",
\"blood_group\": \"g\",
\"nationality\": \"z\",
\"religion\": \"m\",
\"current_address\": \"architecto\",
\"permanent_address\": \"architecto\",
\"phone_number\": \"ngzmiyvdljnikhwa\",
\"email\": \"breitenberg.gilbert@example.com\",
\"profile_photo\": \"u\",
\"date_of_admission\": \"2026-05-03T17:54:46\",
\"status\": \"Transferred\",
\"father_name\": \"w\",
\"father_phone\": \"pwlvqwrsitcpscql\",
\"father_email\": \"sleffler@example.org\",
\"father_occupation\": \"r\",
\"mother_name\": \"w\",
\"mother_phone\": \"tujwvlxjklqppwqb\",
\"mother_email\": \"madisen51@example.net\",
\"mother_occupation\": \"o\",
\"guardian_name\": \"q\",
\"guardian_relationship\": \"i\",
\"guardian_phone\": \"tpxntltcvipojsau\",
\"guardian_address\": \"architecto\",
\"height_cm\": 1,
\"weight_kg\": 0,
\"allergies\": \"architecto\",
\"medical_conditions\": \"architecto\",
\"vaccination_status\": \"n\",
\"previous_educations\": [
{
\"school_name\": \"g\",
\"board\": \"z\",
\"class_completed\": \"miyvdljnikhwaykc\",
\"percentage\": 0,
\"year_of_passing\": \"9775\"
}
],
\"contacts\": [
{
\"contact_type\": \"emergency\",
\"contact_value\": \"n\",
\"is_primary\": true,
\"label\": \"g\"
}
]
}"
const url = new URL(
"http://10.160.0.2/api/students/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "b",
"last_name": "n",
"date_of_birth": "2026-05-03T17:54:46",
"gender": "Other",
"blood_group": "g",
"nationality": "z",
"religion": "m",
"current_address": "architecto",
"permanent_address": "architecto",
"phone_number": "ngzmiyvdljnikhwa",
"email": "breitenberg.gilbert@example.com",
"profile_photo": "u",
"date_of_admission": "2026-05-03T17:54:46",
"status": "Transferred",
"father_name": "w",
"father_phone": "pwlvqwrsitcpscql",
"father_email": "sleffler@example.org",
"father_occupation": "r",
"mother_name": "w",
"mother_phone": "tujwvlxjklqppwqb",
"mother_email": "madisen51@example.net",
"mother_occupation": "o",
"guardian_name": "q",
"guardian_relationship": "i",
"guardian_phone": "tpxntltcvipojsau",
"guardian_address": "architecto",
"height_cm": 1,
"weight_kg": 0,
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n",
"previous_educations": [
{
"school_name": "g",
"board": "z",
"class_completed": "miyvdljnikhwaykc",
"percentage": 0,
"year_of_passing": "9775"
}
],
"contacts": [
{
"contact_type": "emergency",
"contact_value": "n",
"is_primary": true,
"label": "g"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'first_name' => 'b',
'last_name' => 'n',
'date_of_birth' => '2026-05-03T17:54:46',
'gender' => 'Other',
'blood_group' => 'g',
'nationality' => 'z',
'religion' => 'm',
'current_address' => 'architecto',
'permanent_address' => 'architecto',
'phone_number' => 'ngzmiyvdljnikhwa',
'email' => 'breitenberg.gilbert@example.com',
'profile_photo' => 'u',
'date_of_admission' => '2026-05-03T17:54:46',
'status' => 'Transferred',
'father_name' => 'w',
'father_phone' => 'pwlvqwrsitcpscql',
'father_email' => 'sleffler@example.org',
'father_occupation' => 'r',
'mother_name' => 'w',
'mother_phone' => 'tujwvlxjklqppwqb',
'mother_email' => 'madisen51@example.net',
'mother_occupation' => 'o',
'guardian_name' => 'q',
'guardian_relationship' => 'i',
'guardian_phone' => 'tpxntltcvipojsau',
'guardian_address' => 'architecto',
'height_cm' => 1,
'weight_kg' => 0,
'allergies' => 'architecto',
'medical_conditions' => 'architecto',
'vaccination_status' => 'n',
'previous_educations' => [
[
'school_name' => 'g',
'board' => 'z',
'class_completed' => 'miyvdljnikhwaykc',
'percentage' => 0,
'year_of_passing' => '9775',
],
],
'contacts' => [
[
'contact_type' => 'emergency',
'contact_value' => 'n',
'is_primary' => true,
'label' => 'g',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1'
payload = {
"first_name": "b",
"last_name": "n",
"date_of_birth": "2026-05-03T17:54:46",
"gender": "Other",
"blood_group": "g",
"nationality": "z",
"religion": "m",
"current_address": "architecto",
"permanent_address": "architecto",
"phone_number": "ngzmiyvdljnikhwa",
"email": "breitenberg.gilbert@example.com",
"profile_photo": "u",
"date_of_admission": "2026-05-03T17:54:46",
"status": "Transferred",
"father_name": "w",
"father_phone": "pwlvqwrsitcpscql",
"father_email": "sleffler@example.org",
"father_occupation": "r",
"mother_name": "w",
"mother_phone": "tujwvlxjklqppwqb",
"mother_email": "madisen51@example.net",
"mother_occupation": "o",
"guardian_name": "q",
"guardian_relationship": "i",
"guardian_phone": "tpxntltcvipojsau",
"guardian_address": "architecto",
"height_cm": 1,
"weight_kg": 0,
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n",
"previous_educations": [
{
"school_name": "g",
"board": "z",
"class_completed": "miyvdljnikhwaykc",
"percentage": 0,
"year_of_passing": "9775"
}
],
"contacts": [
{
"contact_type": "emergency",
"contact_value": "n",
"is_primary": true,
"label": "g"
}
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/parent
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/parent" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"father_name\": \"b\",
\"father_phone\": \"ngzmiyvdljnikhwa\",
\"father_email\": \"breitenberg.gilbert@example.com\",
\"father_occupation\": \"u\",
\"mother_name\": \"w\",
\"mother_phone\": \"pwlvqwrsitcpscql\",
\"mother_email\": \"sleffler@example.org\",
\"mother_occupation\": \"r\",
\"guardian_name\": \"w\",
\"guardian_relationship\": \"t\",
\"guardian_phone\": \"ujwvlxjklqppwqbe\",
\"guardian_address\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/parent"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"father_name": "b",
"father_phone": "ngzmiyvdljnikhwa",
"father_email": "breitenberg.gilbert@example.com",
"father_occupation": "u",
"mother_name": "w",
"mother_phone": "pwlvqwrsitcpscql",
"mother_email": "sleffler@example.org",
"mother_occupation": "r",
"guardian_name": "w",
"guardian_relationship": "t",
"guardian_phone": "ujwvlxjklqppwqbe",
"guardian_address": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/parent';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'father_name' => 'b',
'father_phone' => 'ngzmiyvdljnikhwa',
'father_email' => 'breitenberg.gilbert@example.com',
'father_occupation' => 'u',
'mother_name' => 'w',
'mother_phone' => 'pwlvqwrsitcpscql',
'mother_email' => 'sleffler@example.org',
'mother_occupation' => 'r',
'guardian_name' => 'w',
'guardian_relationship' => 't',
'guardian_phone' => 'ujwvlxjklqppwqbe',
'guardian_address' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/parent'
payload = {
"father_name": "b",
"father_phone": "ngzmiyvdljnikhwa",
"father_email": "breitenberg.gilbert@example.com",
"father_occupation": "u",
"mother_name": "w",
"mother_phone": "pwlvqwrsitcpscql",
"mother_email": "sleffler@example.org",
"mother_occupation": "r",
"guardian_name": "w",
"guardian_relationship": "t",
"guardian_phone": "ujwvlxjklqppwqbe",
"guardian_address": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_student_id}/parent
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1/parent" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"father_name\": \"b\",
\"father_phone\": \"ngzmiyvdljnikhwa\",
\"father_email\": \"breitenberg.gilbert@example.com\",
\"father_occupation\": \"u\",
\"mother_name\": \"w\",
\"mother_phone\": \"pwlvqwrsitcpscql\",
\"mother_email\": \"sleffler@example.org\",
\"mother_occupation\": \"r\",
\"guardian_name\": \"w\",
\"guardian_relationship\": \"t\",
\"guardian_phone\": \"ujwvlxjklqppwqbe\",
\"guardian_address\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/parent"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"father_name": "b",
"father_phone": "ngzmiyvdljnikhwa",
"father_email": "breitenberg.gilbert@example.com",
"father_occupation": "u",
"mother_name": "w",
"mother_phone": "pwlvqwrsitcpscql",
"mother_email": "sleffler@example.org",
"mother_occupation": "r",
"guardian_name": "w",
"guardian_relationship": "t",
"guardian_phone": "ujwvlxjklqppwqbe",
"guardian_address": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/parent';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'father_name' => 'b',
'father_phone' => 'ngzmiyvdljnikhwa',
'father_email' => 'breitenberg.gilbert@example.com',
'father_occupation' => 'u',
'mother_name' => 'w',
'mother_phone' => 'pwlvqwrsitcpscql',
'mother_email' => 'sleffler@example.org',
'mother_occupation' => 'r',
'guardian_name' => 'w',
'guardian_relationship' => 't',
'guardian_phone' => 'ujwvlxjklqppwqbe',
'guardian_address' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/parent'
payload = {
"father_name": "b",
"father_phone": "ngzmiyvdljnikhwa",
"father_email": "breitenberg.gilbert@example.com",
"father_occupation": "u",
"mother_name": "w",
"mother_phone": "pwlvqwrsitcpscql",
"mother_email": "sleffler@example.org",
"mother_occupation": "r",
"guardian_name": "w",
"guardian_relationship": "t",
"guardian_phone": "ujwvlxjklqppwqbe",
"guardian_address": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/education
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/education" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"school_name\": \"b\",
\"board\": \"n\",
\"class_completed\": \"gzmiyvdljnikhway\",
\"percentage\": 0,
\"year_of_passing\": \"9775\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/education"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"school_name": "b",
"board": "n",
"class_completed": "gzmiyvdljnikhway",
"percentage": 0,
"year_of_passing": "9775"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/education';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'school_name' => 'b',
'board' => 'n',
'class_completed' => 'gzmiyvdljnikhway',
'percentage' => 0,
'year_of_passing' => '9775',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/education'
payload = {
"school_name": "b",
"board": "n",
"class_completed": "gzmiyvdljnikhway",
"percentage": 0,
"year_of_passing": "9775"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_student_id}/education/{education_education_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1/education/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"school_name\": \"b\",
\"board\": \"n\",
\"class_completed\": \"gzmiyvdljnikhway\",
\"percentage\": 0,
\"year_of_passing\": \"9775\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/education/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"school_name": "b",
"board": "n",
"class_completed": "gzmiyvdljnikhway",
"percentage": 0,
"year_of_passing": "9775"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/education/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'school_name' => 'b',
'board' => 'n',
'class_completed' => 'gzmiyvdljnikhway',
'percentage' => 0,
'year_of_passing' => '9775',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/education/1'
payload = {
"school_name": "b",
"board": "n",
"class_completed": "gzmiyvdljnikhway",
"percentage": 0,
"year_of_passing": "9775"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_student_id}/education/{education_education_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1/education/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/education/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/education/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/education/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_student_id}/health
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1/health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/health';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/health'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/health
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/health" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"height_cm\": 1,
\"weight_kg\": 1,
\"blood_group\": \"g\",
\"allergies\": \"architecto\",
\"medical_conditions\": \"architecto\",
\"vaccination_status\": \"n\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"height_cm": 1,
"weight_kg": 1,
"blood_group": "g",
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/health';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'height_cm' => 1,
'weight_kg' => 1,
'blood_group' => 'g',
'allergies' => 'architecto',
'medical_conditions' => 'architecto',
'vaccination_status' => 'n',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/health'
payload = {
"height_cm": 1,
"weight_kg": 1,
"blood_group": "g",
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_student_id}/health/{healthRecord_health_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1/health/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"height_cm\": 1,
\"weight_kg\": 1,
\"blood_group\": \"g\",
\"allergies\": \"architecto\",
\"medical_conditions\": \"architecto\",
\"vaccination_status\": \"n\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/health/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"height_cm": 1,
"weight_kg": 1,
"blood_group": "g",
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/health/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'height_cm' => 1,
'weight_kg' => 1,
'blood_group' => 'g',
'allergies' => 'architecto',
'medical_conditions' => 'architecto',
'vaccination_status' => 'n',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/health/1'
payload = {
"height_cm": 1,
"weight_kg": 1,
"blood_group": "g",
"allergies": "architecto",
"medical_conditions": "architecto",
"vaccination_status": "n"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_student_id}/health/{healthRecord_health_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1/health/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/health/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/health/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/health/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/enroll
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/enroll" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"batch_id\": 16,
\"academic_year_id\": 16,
\"enrollment_date\": \"2026-05-03T17:54:46\",
\"status\": \"Graduated\",
\"remarks\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/enroll"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"batch_id": 16,
"academic_year_id": 16,
"enrollment_date": "2026-05-03T17:54:46",
"status": "Graduated",
"remarks": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/enroll';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'batch_id' => 16,
'academic_year_id' => 16,
'enrollment_date' => '2026-05-03T17:54:46',
'status' => 'Graduated',
'remarks' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/enroll'
payload = {
"batch_id": 16,
"academic_year_id": 16,
"enrollment_date": "2026-05-03T17:54:46",
"status": "Graduated",
"remarks": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_student_id}/enrollment/{enrollment_enrollment_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1/enrollment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"enrollment_date\": \"2026-05-03T17:54:46\",
\"status\": \"Graduated\",
\"remarks\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/enrollment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"enrollment_date": "2026-05-03T17:54:46",
"status": "Graduated",
"remarks": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/enrollment/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'enrollment_date' => '2026-05-03T17:54:46',
'status' => 'Graduated',
'remarks' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/enrollment/1'
payload = {
"enrollment_date": "2026-05-03T17:54:46",
"status": "Graduated",
"remarks": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_student_id}/enrollment/{enrollment_enrollment_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1/enrollment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/enrollment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/enrollment/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/enrollment/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_student_id}/enrollments
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1/enrollments" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/enrollments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/enrollments';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/enrollments'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/promote
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/promote" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"from_batch_id\": 16,
\"to_batch_id\": 16,
\"from_academic_year_id\": 16,
\"to_academic_year_id\": 16,
\"promotion_date\": \"2026-05-03T17:54:46\",
\"remarks\": \"architecto\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/promote"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"from_batch_id": 16,
"to_batch_id": 16,
"from_academic_year_id": 16,
"to_academic_year_id": 16,
"promotion_date": "2026-05-03T17:54:46",
"remarks": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/promote';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'from_batch_id' => 16,
'to_batch_id' => 16,
'from_academic_year_id' => 16,
'to_academic_year_id' => 16,
'promotion_date' => '2026-05-03T17:54:46',
'remarks' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/promote'
payload = {
"from_batch_id": 16,
"to_batch_id": 16,
"from_academic_year_id": 16,
"to_academic_year_id": 16,
"promotion_date": "2026-05-03T17:54:46",
"remarks": "architecto"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_student_id}/promotions
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1/promotions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/promotions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/promotions';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/promotions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_student_id}/promotion/{promotion_promotion_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1/promotion/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/promotion/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/promotion/16';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/promotion/16'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_student_id}/documents
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1/documents" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/documents"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/documents';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/documents'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/documents
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/documents" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_type\": \"id_proof\",
\"document_name\": \"b\",
\"file_path\": \"n\",
\"file_size\": 16,
\"mime_type\": \"n\",
\"uploaded_by\": 16,
\"notes\": \"architecto\",
\"expiry_date\": \"2026-05-03T17:54:46\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/documents"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_type": "id_proof",
"document_name": "b",
"file_path": "n",
"file_size": 16,
"mime_type": "n",
"uploaded_by": 16,
"notes": "architecto",
"expiry_date": "2026-05-03T17:54:46"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/documents';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_type' => 'id_proof',
'document_name' => 'b',
'file_path' => 'n',
'file_size' => 16,
'mime_type' => 'n',
'uploaded_by' => 16,
'notes' => 'architecto',
'expiry_date' => '2026-05-03T17:54:46',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/documents'
payload = {
"document_type": "id_proof",
"document_name": "b",
"file_path": "n",
"file_size": 16,
"mime_type": "n",
"uploaded_by": 16,
"notes": "architecto",
"expiry_date": "2026-05-03T17:54:46"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_student_id}/document/{document_document_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1/document/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_type\": \"passport\",
\"document_name\": \"b\",
\"file_path\": \"n\",
\"file_size\": 16,
\"mime_type\": \"n\",
\"notes\": \"architecto\",
\"expiry_date\": \"2026-05-03T17:54:46\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/document/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_type": "passport",
"document_name": "b",
"file_path": "n",
"file_size": 16,
"mime_type": "n",
"notes": "architecto",
"expiry_date": "2026-05-03T17:54:46"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/document/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_type' => 'passport',
'document_name' => 'b',
'file_path' => 'n',
'file_size' => 16,
'mime_type' => 'n',
'notes' => 'architecto',
'expiry_date' => '2026-05-03T17:54:46',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/document/1'
payload = {
"document_type": "passport",
"document_name": "b",
"file_path": "n",
"file_size": 16,
"mime_type": "n",
"notes": "architecto",
"expiry_date": "2026-05-03T17:54:46"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_student_id}/document/{document_document_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1/document/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/document/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/document/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/document/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_student_id}/activities
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1/activities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/activities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/activities';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/activities'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/students/{student_student_id}/contacts
Example request:
curl --request GET \
--get "http://10.160.0.2/api/students/1/contacts" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/contacts"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/contacts';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/contacts'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/students/{student_student_id}/contacts
Example request:
curl --request POST \
"http://10.160.0.2/api/students/1/contacts" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contact_type\": \"work\",
\"contact_value\": \"b\",
\"is_primary\": true,
\"label\": \"n\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/contacts"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contact_type": "work",
"contact_value": "b",
"is_primary": true,
"label": "n"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/contacts';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'contact_type' => 'work',
'contact_value' => 'b',
'is_primary' => true,
'label' => 'n',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/contacts'
payload = {
"contact_type": "work",
"contact_value": "b",
"is_primary": true,
"label": "n"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/students/{student_student_id}/contact/{contact_contact_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/students/1/contact/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contact_type\": \"mobile\",
\"contact_value\": \"b\",
\"is_primary\": true,
\"label\": \"n\"
}"
const url = new URL(
"http://10.160.0.2/api/students/1/contact/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contact_type": "mobile",
"contact_value": "b",
"is_primary": true,
"label": "n"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/contact/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'contact_type' => 'mobile',
'contact_value' => 'b',
'is_primary' => true,
'label' => 'n',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/contact/1'
payload = {
"contact_type": "mobile",
"contact_value": "b",
"is_primary": true,
"label": "n"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/students/{student_student_id}/contact/{contact_contact_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/students/1/contact/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/students/1/contact/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/students/1/contact/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/students/1/contact/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Subject Management
GET api/subject
Example request:
curl --request GET \
--get "http://10.160.0.2/api/subject" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/subject"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/subject';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/subject'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/subject
Example request:
curl --request POST \
"http://10.160.0.2/api/subject" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/subject"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/subject';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/subject'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/subject/{subject_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/subject/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/subject/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/subject/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/subject/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/subject/{subject_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/subject/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/subject/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/subject/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/subject/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/subject/{subject_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/subject/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/subject/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/subject/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/subject/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/classSubject
Example request:
curl --request GET \
--get "http://10.160.0.2/api/classSubject" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classSubject"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classSubject';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classSubject'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/classSubject
Example request:
curl --request POST \
"http://10.160.0.2/api/classSubject" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classSubject"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classSubject';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classSubject'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/classSubject/{class_subject_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/classSubject/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classSubject/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classSubject/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classSubject/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/classSubject/{class_subject_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/classSubject/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classSubject/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classSubject/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classSubject/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/classSubject/{class_subject_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/classSubject/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/classSubject/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/classSubject/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/classSubject/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/curriculum
Example request:
curl --request GET \
--get "http://10.160.0.2/api/curriculum" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/curriculum"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/curriculum';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/curriculum'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/curriculum
Example request:
curl --request POST \
"http://10.160.0.2/api/curriculum" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/curriculum"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/curriculum';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/curriculum'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/curriculum/{curriculum_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/curriculum/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/curriculum/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/curriculum/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/curriculum/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/curriculum/{curriculum_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/curriculum/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/curriculum/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/curriculum/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/curriculum/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/curriculum/{curriculum_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/curriculum/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/curriculum/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/curriculum/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/curriculum/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/lessonPlan
Example request:
curl --request GET \
--get "http://10.160.0.2/api/lessonPlan" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/lessonPlan"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/lessonPlan';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/lessonPlan'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/lessonPlan
Example request:
curl --request POST \
"http://10.160.0.2/api/lessonPlan" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/lessonPlan"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/lessonPlan';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/lessonPlan'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/lessonPlan/{lesson_plan_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/lessonPlan/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/lessonPlan/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/lessonPlan/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/lessonPlan/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/lessonPlan/{lesson_plan_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/lessonPlan/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/lessonPlan/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/lessonPlan/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/lessonPlan/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/lessonPlan/{lesson_plan_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/lessonPlan/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/lessonPlan/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/lessonPlan/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/lessonPlan/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/textbook
Example request:
curl --request GET \
--get "http://10.160.0.2/api/textbook" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/textbook"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/textbook';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/textbook'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/textbook
Example request:
curl --request POST \
"http://10.160.0.2/api/textbook" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/textbook"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/textbook';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/textbook'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/textbook/{textbook_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/textbook/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/textbook/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/textbook/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/textbook/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/textbook/{textbook_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/textbook/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/textbook/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/textbook/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/textbook/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/textbook/{textbook_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/textbook/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/textbook/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/textbook/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/textbook/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/teacherSubjectMapping
Example request:
curl --request GET \
--get "http://10.160.0.2/api/teacherSubjectMapping" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherSubjectMapping"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherSubjectMapping';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherSubjectMapping'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/teacherSubjectMapping
Example request:
curl --request POST \
"http://10.160.0.2/api/teacherSubjectMapping" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherSubjectMapping"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherSubjectMapping';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherSubjectMapping'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/teacherSubjectMapping/{mapping_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/teacherSubjectMapping/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherSubjectMapping/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherSubjectMapping/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherSubjectMapping/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/teacherSubjectMapping/{mapping_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/teacherSubjectMapping/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherSubjectMapping/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherSubjectMapping/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherSubjectMapping/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/teacherSubjectMapping/{mapping_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/teacherSubjectMapping/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/teacherSubjectMapping/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/teacherSubjectMapping/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/teacherSubjectMapping/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Timetable Management
GET api/room
Example request:
curl --request GET \
--get "http://10.160.0.2/api/room" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/room"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/room';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/room'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/room
Example request:
curl --request POST \
"http://10.160.0.2/api/room" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_name\": \"b\",
\"room_type\": \"Office\",
\"capacity\": 22,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/room"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"room_name": "b",
"room_type": "Office",
"capacity": 22,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/room';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'room_name' => 'b',
'room_type' => 'Office',
'capacity' => 22,
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/room'
payload = {
"room_name": "b",
"room_type": "Office",
"capacity": 22,
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/room/{room_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/room/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/room/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/room/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/room/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/room/{room_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/room/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"room_type\": \"Classroom\",
\"capacity\": 16,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"http://10.160.0.2/api/room/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"room_type": "Classroom",
"capacity": 16,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/room/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'room_type' => 'Classroom',
'capacity' => 16,
'description' => 'Eius et animi quos velit et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/room/1'
payload = {
"room_type": "Classroom",
"capacity": 16,
"description": "Eius et animi quos velit et."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/room/{room_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/room/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/room/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/room/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/room/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/day
Example request:
curl --request GET \
--get "http://10.160.0.2/api/day" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/day"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/day';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/day'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/day
Example request:
curl --request POST \
"http://10.160.0.2/api/day" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"day_name\": \"bngzmiyvdljnikhw\"
}"
const url = new URL(
"http://10.160.0.2/api/day"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"day_name": "bngzmiyvdljnikhw"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/day';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'day_name' => 'bngzmiyvdljnikhw',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/day'
payload = {
"day_name": "bngzmiyvdljnikhw"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/day/{day_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/day/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/day/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/day/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/day/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/day/{day_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/day/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://10.160.0.2/api/day/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/day/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/day/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/day/{day_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/day/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/day/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/day/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/day/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/period
Example request:
curl --request GET \
--get "http://10.160.0.2/api/period" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/period"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/period';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/period'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/period
Example request:
curl --request POST \
"http://10.160.0.2/api/period" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_time\": \"17:54\",
\"end_time\": \"2052-05-26\"
}"
const url = new URL(
"http://10.160.0.2/api/period"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_time": "17:54",
"end_time": "2052-05-26"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/period';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_time' => '17:54',
'end_time' => '2052-05-26',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/period'
payload = {
"start_time": "17:54",
"end_time": "2052-05-26"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/period/{period_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/period/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/period/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/period/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/period/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/period/{period_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/period/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_time\": \"17:54\",
\"end_time\": \"2052-05-26\"
}"
const url = new URL(
"http://10.160.0.2/api/period/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_time": "17:54",
"end_time": "2052-05-26"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/period/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_time' => '17:54',
'end_time' => '2052-05-26',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/period/1'
payload = {
"start_time": "17:54",
"end_time": "2052-05-26"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/period/{period_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/period/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/period/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/period/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/period/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/timetable
Example request:
curl --request GET \
--get "http://10.160.0.2/api/timetable" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/timetable"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/timetable';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/timetable'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/timetable
Example request:
curl --request POST \
"http://10.160.0.2/api/timetable" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"class_id\": 16,
\"section_id\": 16,
\"academic_year_id\": 16,
\"day_id\": 16,
\"period_id\": 16,
\"subject_id\": 16,
\"teacher_id\": 16,
\"room_id\": 16
}"
const url = new URL(
"http://10.160.0.2/api/timetable"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"day_id": 16,
"period_id": 16,
"subject_id": 16,
"teacher_id": 16,
"room_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/timetable';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'class_id' => 16,
'section_id' => 16,
'academic_year_id' => 16,
'day_id' => 16,
'period_id' => 16,
'subject_id' => 16,
'teacher_id' => 16,
'room_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/timetable'
payload = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"day_id": 16,
"period_id": 16,
"subject_id": 16,
"teacher_id": 16,
"room_id": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/timetable/{timetable_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/timetable/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/timetable/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/timetable/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/timetable/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/timetable/{timetable_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/timetable/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"class_id\": 16,
\"section_id\": 16,
\"academic_year_id\": 16,
\"day_id\": 16,
\"period_id\": 16,
\"subject_id\": 16,
\"teacher_id\": 16,
\"room_id\": 16
}"
const url = new URL(
"http://10.160.0.2/api/timetable/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"day_id": 16,
"period_id": 16,
"subject_id": 16,
"teacher_id": 16,
"room_id": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/timetable/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'class_id' => 16,
'section_id' => 16,
'academic_year_id' => 16,
'day_id' => 16,
'period_id' => 16,
'subject_id' => 16,
'teacher_id' => 16,
'room_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/timetable/1'
payload = {
"class_id": 16,
"section_id": 16,
"academic_year_id": 16,
"day_id": 16,
"period_id": 16,
"subject_id": 16,
"teacher_id": 16,
"room_id": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/timetable/{timetable_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/timetable/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/timetable/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/timetable/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/timetable/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/substituteAssignment
Example request:
curl --request GET \
--get "http://10.160.0.2/api/substituteAssignment" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/substituteAssignment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/substituteAssignment';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/substituteAssignment'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/substituteAssignment
Example request:
curl --request POST \
"http://10.160.0.2/api/substituteAssignment" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"timetable_id\": 16,
\"original_teacher_id\": 16,
\"substitute_teacher_id\": 16,
\"date_of_substitution\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/substituteAssignment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timetable_id": 16,
"original_teacher_id": 16,
"substitute_teacher_id": 16,
"date_of_substitution": "2026-05-03T17:54:47"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/substituteAssignment';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'timetable_id' => 16,
'original_teacher_id' => 16,
'substitute_teacher_id' => 16,
'date_of_substitution' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/substituteAssignment'
payload = {
"timetable_id": 16,
"original_teacher_id": 16,
"substitute_teacher_id": 16,
"date_of_substitution": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/substituteAssignment/{substitute_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/substituteAssignment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/substituteAssignment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/substituteAssignment/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/substituteAssignment/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/substituteAssignment/{substitute_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/substituteAssignment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"timetable_id\": 16,
\"original_teacher_id\": 16,
\"substitute_teacher_id\": 16,
\"date_of_substitution\": \"2026-05-03T17:54:47\"
}"
const url = new URL(
"http://10.160.0.2/api/substituteAssignment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timetable_id": 16,
"original_teacher_id": 16,
"substitute_teacher_id": 16,
"date_of_substitution": "2026-05-03T17:54:47"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/substituteAssignment/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'timetable_id' => 16,
'original_teacher_id' => 16,
'substitute_teacher_id' => 16,
'date_of_substitution' => '2026-05-03T17:54:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/substituteAssignment/1'
payload = {
"timetable_id": 16,
"original_teacher_id": 16,
"substitute_teacher_id": 16,
"date_of_substitution": "2026-05-03T17:54:47"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/substituteAssignment/{substitute_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/substituteAssignment/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/substituteAssignment/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/substituteAssignment/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/substituteAssignment/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/specialEvent
Example request:
curl --request GET \
--get "http://10.160.0.2/api/specialEvent" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/specialEvent"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/specialEvent';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/specialEvent'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/specialEvent
Example request:
curl --request POST \
"http://10.160.0.2/api/specialEvent" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_name\": \"b\",
\"event_date\": \"2026-05-03T17:54:47\",
\"start_time\": \"17:54\",
\"end_time\": \"2052-05-26\",
\"description\": \"Eius et animi quos velit et.\",
\"room_id\": 16
}"
const url = new URL(
"http://10.160.0.2/api/specialEvent"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_name": "b",
"event_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "2052-05-26",
"description": "Eius et animi quos velit et.",
"room_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/specialEvent';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'event_name' => 'b',
'event_date' => '2026-05-03T17:54:47',
'start_time' => '17:54',
'end_time' => '2052-05-26',
'description' => 'Eius et animi quos velit et.',
'room_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/specialEvent'
payload = {
"event_name": "b",
"event_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "2052-05-26",
"description": "Eius et animi quos velit et.",
"room_id": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/specialEvent/{event_id}
Example request:
curl --request GET \
--get "http://10.160.0.2/api/specialEvent/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/specialEvent/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/specialEvent/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/specialEvent/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/specialEvent/{event_id}
Example request:
curl --request PUT \
"http://10.160.0.2/api/specialEvent/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_name\": \"b\",
\"event_date\": \"2026-05-03T17:54:47\",
\"start_time\": \"17:54\",
\"end_time\": \"2052-05-26\",
\"description\": \"Eius et animi quos velit et.\",
\"room_id\": 16
}"
const url = new URL(
"http://10.160.0.2/api/specialEvent/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_name": "b",
"event_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "2052-05-26",
"description": "Eius et animi quos velit et.",
"room_id": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/specialEvent/1';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'event_name' => 'b',
'event_date' => '2026-05-03T17:54:47',
'start_time' => '17:54',
'end_time' => '2052-05-26',
'description' => 'Eius et animi quos velit et.',
'room_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/specialEvent/1'
payload = {
"event_name": "b",
"event_date": "2026-05-03T17:54:47",
"start_time": "17:54",
"end_time": "2052-05-26",
"description": "Eius et animi quos velit et.",
"room_id": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/specialEvent/{event_id}
Example request:
curl --request DELETE \
"http://10.160.0.2/api/specialEvent/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://10.160.0.2/api/specialEvent/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://10.160.0.2/api/specialEvent/1';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'http://10.160.0.2/api/specialEvent/1'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.