MENU navbar-image

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."
}
 

Request      

GET api/studentAttendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/studentAttendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

student_id   integer     

Example: 16

date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

status   string     

Example: Present

Must be one of:
  • Present
  • Absent
  • Leave
batch_id   integer  optional    

Example: 16

remarks   string  optional    

Example: architecto

marked_by   integer  optional    

Example: 16

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."
}
 

Request      

GET api/studentAttendance/{attendance_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

attendance_id   integer     

The ID of the attendance. Example: 1

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()

Request      

PUT api/studentAttendance/{attendance_id}

PATCH api/studentAttendance/{attendance_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

attendance_id   integer     

The ID of the attendance. Example: 1

Body Parameters

student_id   integer     

Example: 16

date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

status   string     

Example: Absent

Must be one of:
  • Present
  • Absent
  • Leave
batch_id   integer  optional    

Example: 16

remarks   string  optional    

Example: architecto

marked_by   integer  optional    

Example: 16

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()

Request      

DELETE api/studentAttendance/{attendance_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

attendance_id   integer     

The ID of the attendance. Example: 1

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."
}
 

Request      

GET api/teacherAttendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/teacherAttendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

staff_id   integer     

Example: 16

date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

status   string     

Example: Leave

Must be one of:
  • Present
  • Absent
  • Leave
remarks   string  optional    

Example: architecto

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."
}
 

Request      

GET api/teacherAttendance/{attendance_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

attendance_id   integer     

The ID of the attendance. Example: 1

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()

Request      

PUT api/teacherAttendance/{attendance_id}

PATCH api/teacherAttendance/{attendance_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

attendance_id   integer     

The ID of the attendance. Example: 1

Body Parameters

staff_id   integer     

Example: 16

date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

status   string     

Example: Present

Must be one of:
  • Present
  • Absent
  • Leave
remarks   string  optional    

Example: architecto

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()

Request      

DELETE api/teacherAttendance/{attendance_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

attendance_id   integer     

The ID of the attendance. Example: 1

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."
}
 

Request      

GET api/studentLeaveRequest

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/studentLeaveRequest

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

student_id   integer     

Example: 16

start_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string     

Must be a valid date. Must be a date after or equal to start_date. Example: 2052-05-26

reason   string     

Example: architecto

status   string     

Example: Pending

Must be one of:
  • Pending
  • Approved
  • Rejected
applied_on   string     

Must be a valid date. Example: 2026-05-03T17:54:46

approved_by   integer  optional    

Example: 16

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."
}
 

Request      

GET api/studentLeaveRequest/{leave_request_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

leave_request_id   integer     

The ID of the leave request. Example: 1

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()

Request      

PUT api/studentLeaveRequest/{leave_request_id}

PATCH api/studentLeaveRequest/{leave_request_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

leave_request_id   integer     

The ID of the leave request. Example: 1

Body Parameters

student_id   integer     

Example: 16

start_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string     

Must be a valid date. Must be a date after or equal to start_date. Example: 2052-05-26

reason   string     

Example: architecto

status   string     

Example: Approved

Must be one of:
  • Pending
  • Approved
  • Rejected
applied_on   string     

Must be a valid date. Example: 2026-05-03T17:54:46

approved_by   integer  optional    

Example: 16

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()

Request      

DELETE api/studentLeaveRequest/{leave_request_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

leave_request_id   integer     

The ID of the leave request. Example: 1

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."
}
 

Request      

GET api/teacherLeaveRequest

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/teacherLeaveRequest

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

staff_id   integer     

Example: 16

start_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string     

Must be a valid date. Must be a date after or equal to start_date. Example: 2052-05-26

reason   string     

Example: architecto

status   string     

Example: Pending

Must be one of:
  • Pending
  • Approved
  • Rejected
applied_on   string     

Must be a valid date. Example: 2026-05-03T17:54:46

approved_by   integer  optional    

Example: 16

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."
}
 

Request      

GET api/teacherLeaveRequest/{leave_request_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

leave_request_id   integer     

The ID of the leave request. Example: 1

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()

Request      

PUT api/teacherLeaveRequest/{leave_request_id}

PATCH api/teacherLeaveRequest/{leave_request_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

leave_request_id   integer     

The ID of the leave request. Example: 1

Body Parameters

staff_id   integer     

Example: 16

start_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string     

Must be a valid date. Must be a date after or equal to start_date. Example: 2052-05-26

reason   string     

Example: architecto

status   string     

Example: Approved

Must be one of:
  • Pending
  • Approved
  • Rejected
applied_on   string     

Must be a valid date. Example: 2026-05-03T17:54:46

approved_by   integer  optional    

Example: 16

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()

Request      

DELETE api/teacherLeaveRequest/{leave_request_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

leave_request_id   integer     

The ID of the leave request. Example: 1

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."
}
 

Request      

GET api/holiday

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/holiday

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

title   string     

Must not be greater than 100 characters. Example: b

date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

description   string  optional    

Example: Eius et animi quos velit et.

is_recurring   boolean  optional    

Example: false

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."
}
 

Request      

GET api/holiday/{holiday_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

holiday_id   integer     

The ID of the holiday. Example: 1

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()

Request      

PUT api/holiday/{holiday_id}

PATCH api/holiday/{holiday_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

holiday_id   integer     

The ID of the holiday. Example: 1

Body Parameters

title   string     

Must not be greater than 100 characters. Example: b

date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

description   string  optional    

Example: Eius et animi quos velit et.

is_recurring   boolean  optional    

Example: false

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()

Request      

DELETE api/holiday/{holiday_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

holiday_id   integer     

The ID of the holiday. Example: 1

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."
}
 

Request      

GET api/classes

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/classes

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

class_name   string     

Must not be greater than 50 characters. Example: b

class_code   string  optional    

Must not be greater than 20 characters. Example: ngzmiyvdljnikhwa

academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

description   string  optional    

Example: Eius et animi quos velit et.

is_active   boolean  optional    

Example: false

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."
}
 

Request      

GET api/classes/{schoolClass_class_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

schoolClass_class_id   integer     

The ID of the schoolClass class. Example: 1

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()

Request      

PUT api/classes/{schoolClass_class_id}

PATCH api/classes/{schoolClass_class_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

schoolClass_class_id   integer     

The ID of the schoolClass class. Example: 1

Body Parameters

class_name   string  optional    

Must not be greater than 50 characters. Example: b

class_code   string  optional    
academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

description   string  optional    

Example: Eius et animi quos velit et.

is_active   boolean  optional    

Example: false

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()

Request      

DELETE api/classes/{schoolClass_class_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

schoolClass_class_id   integer     

The ID of the schoolClass class. Example: 1

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."
}
 

Request      

GET api/sections

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/sections

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

section_name   string     

Must not be greater than 10 characters. Example: bngzmi

class_id   integer     

The class_id of an existing record in the classes table. Example: 16

class_teacher_id   integer  optional    

The staff_id of an existing record in the staff table. Example: 16

capacity   integer  optional    

Must be at least 0. Example: 39

description   string  optional    

Example: Eius et animi quos velit et.

is_active   boolean  optional    

Example: false

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."
}
 

Request      

GET api/sections/{section_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

section_id   integer     

The ID of the section. Example: 1

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()

Request      

PUT api/sections/{section_id}

PATCH api/sections/{section_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

section_id   integer     

The ID of the section. Example: 1

Body Parameters

section_name   string  optional    

Must not be greater than 10 characters. Example: bngzmi

class_id   integer  optional    

The class_id of an existing record in the classes table. Example: 16

capacity   integer  optional    

Must be at least 0. Example: 39

description   string  optional    

Example: Eius et animi quos velit et.

is_active   boolean  optional    

Example: false

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()

Request      

DELETE api/sections/{section_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

section_id   integer     

The ID of the section. Example: 1

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."
}
 

Request      

GET api/batches

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/batches

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

class_id   integer     

The class_id of an existing record in the classes table. Example: 16

section_id   integer     

The section_id of an existing record in the sections table. Example: 16

academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

batch_name   string     

Must not be greater than 100 characters. Example: n

batch_code   string  optional    

Must not be greater than 20 characters. Example: gzmiyvdljnikhway

start_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string  optional    

Must be a valid date. Must be a date after start_date. Example: 2052-05-26

is_active   boolean  optional    

Example: true

description   string  optional    

Example: Eius et animi quos velit et.

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."
}
 

Request      

GET api/batches/{batch_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

batch_id   integer     

The ID of the batch. Example: 1

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()

Request      

PUT api/batches/{batch_id}

PATCH api/batches/{batch_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

batch_id   integer     

The ID of the batch. Example: 1

Body Parameters

class_id   integer  optional    

The class_id of an existing record in the classes table. Example: 16

section_id   integer  optional    

The section_id of an existing record in the sections table. Example: 16

academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

batch_name   string  optional    

Must not be greater than 100 characters. Example: n

batch_code   string  optional    
start_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string  optional    

Must be a valid date. Must be a date after start_date. Example: 2052-05-26

start_time   string  optional    

Must be a valid date in the format H:i. Example: 17:54

end_time   string  optional    

Must be a valid date in the format H:i. Must be a date after start_time. Example: 2052-05-26

is_active   boolean  optional    

Example: false

description   string  optional    

Example: Eius et animi quos velit et.

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()

Request      

DELETE api/batches/{batch_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

batch_id   integer     

The ID of the batch. Example: 1

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."
}
 

Request      

GET api/academic-years

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/academic-years

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

year_range   string     

Must not be greater than 20 characters. Example: bngzmiyvdljnikhw

start_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string     

Must be a valid date. Must be a date after start_date. Example: 2052-05-26

is_current   boolean  optional    

Example: false

description   string  optional    

Example: Eius et animi quos velit et.

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."
}
 

Request      

GET api/academic-years/{academic_year_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

academic_year_id   integer     

The ID of the academic year. Example: 1

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()

Request      

PUT api/academic-years/{academic_year_id}

PATCH api/academic-years/{academic_year_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

academic_year_id   integer     

The ID of the academic year. Example: 1

Body Parameters

year_range   string  optional    
start_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

end_date   string  optional    

Must be a valid date. Must be a date after start_date. Example: 2052-05-26

is_current   boolean  optional    

Example: false

description   string  optional    

Example: Eius et animi quos velit et.

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()

Request      

DELETE api/academic-years/{academic_year_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

academic_year_id   integer     

The ID of the academic year. Example: 1

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."
}
 

Request      

GET api/message

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/message

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

title   string  optional    

Must not be greater than 150 characters. Example: b

content   string     

Example: architecto

message_type   string     

Example: App Notification

Must be one of:
  • SMS
  • Email
  • App Notification
  • Circular
  • Announcement
created_by   string  optional    

The id of an existing record in the users table.

scheduled_at   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

priority   string     

Example: Normal

Must be one of:
  • Low
  • Normal
  • High
  • Urgent
is_sent   boolean  optional    

Example: true

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."
}
 

Request      

GET api/message/{message_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

message_id   integer     

The ID of the message. Example: 1

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()

Request      

PUT api/message/{message_id}

PATCH api/message/{message_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

message_id   integer     

The ID of the message. Example: 1

Body Parameters

title   string  optional    

Must not be greater than 150 characters. Example: b

content   string     

Example: architecto

message_type   string     

Example: Email

Must be one of:
  • SMS
  • Email
  • App Notification
  • Circular
  • Announcement
created_by   string  optional    

The id of an existing record in the users table.

scheduled_at   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

priority   string     

Example: Low

Must be one of:
  • Low
  • Normal
  • High
  • Urgent
is_sent   boolean  optional    

Example: false

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()

Request      

DELETE api/message/{message_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

message_id   integer     

The ID of the message. Example: 1

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."
}
 

Request      

GET api/messageRecipient

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/messageRecipient

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

message_id   string     

The message_id of an existing record in the messages table. Example: architecto

user_id   string     

The id of an existing record in the users table. Example: architecto

status   string     

Example: Pending

Must be one of:
  • Pending
  • Sent
  • Failed
  • Read
delivered_at   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

read_at   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

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."
}
 

Request      

GET api/messageRecipient/{recipient_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recipient_id   integer     

The ID of the recipient. Example: 1

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()

Request      

PUT api/messageRecipient/{recipient_id}

PATCH api/messageRecipient/{recipient_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recipient_id   integer     

The ID of the recipient. Example: 1

Body Parameters

message_id   string     

The message_id of an existing record in the messages table. Example: architecto

user_id   string     

The id of an existing record in the users table. Example: architecto

status   string     

Example: Failed

Must be one of:
  • Pending
  • Sent
  • Failed
  • Read
delivered_at   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

read_at   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

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()

Request      

DELETE api/messageRecipient/{recipient_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

recipient_id   integer     

The ID of the recipient. Example: 1

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."
}
 

Request      

GET api/circular

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/circular

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

title   string     

Must not be greater than 150 characters. Example: b

content   string     

Example: architecto

issued_by   string  optional    

The id of an existing record in the users table.

issued_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

target_audience   string     

Example: Teachers

Must be one of:
  • All
  • Students
  • Parents
  • Teachers
  • Staff
attachment_url   string  optional    

Must not be greater than 255 characters. Example: http://bailey.com/

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."
}
 

Request      

GET api/circular/{circular_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

circular_id   integer     

The ID of the circular. Example: 1

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()

Request      

PUT api/circular/{circular_id}

PATCH api/circular/{circular_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

circular_id   integer     

The ID of the circular. Example: 1

Body Parameters

title   string     

Must not be greater than 150 characters. Example: b

content   string     

Example: architecto

issued_by   string  optional    

The id of an existing record in the users table.

issued_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

target_audience   string     

Example: All

Must be one of:
  • All
  • Students
  • Parents
  • Teachers
  • Staff
attachment_url   string  optional    

Must not be greater than 255 characters. Example: http://bailey.com/

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()

Request      

DELETE api/circular/{circular_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

circular_id   integer     

The ID of the circular. Example: 1

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."
}
 

Request      

GET api/notificationSetting

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/notificationSetting

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

user_id   string     

The id of an existing record in the users table. Example: architecto

allow_sms   boolean  optional    

Example: true

allow_email   boolean  optional    

Example: false

allow_app   boolean  optional    

Example: false

allow_announcements   boolean  optional    

Example: false

allow_circulars   boolean  optional    

Example: true

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."
}
 

Request      

GET api/notificationSetting/{setting_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

setting_id   integer     

The ID of the setting. Example: 1

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()

Request      

PUT api/notificationSetting/{setting_id}

PATCH api/notificationSetting/{setting_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

setting_id   integer     

The ID of the setting. Example: 1

Body Parameters

allow_sms   boolean  optional    

Example: false

allow_email   boolean  optional    

Example: true

allow_app   boolean  optional    

Example: false

allow_announcements   boolean  optional    

Example: false

allow_circulars   boolean  optional    

Example: true

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()

Request      

DELETE api/notificationSetting/{setting_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

setting_id   integer     

The ID of the setting. Example: 1

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."
}
 

Request      

GET api/exam

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/exam

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/exam/{exam_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

exam_id   integer     

The ID of the exam. Example: 1

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()

Request      

PUT api/exam/{exam_id}

PATCH api/exam/{exam_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

exam_id   integer     

The ID of the exam. Example: 1

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()

Request      

DELETE api/exam/{exam_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

exam_id   integer     

The ID of the exam. Example: 1

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."
}
 

Request      

GET api/examSchedule

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/examSchedule

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/examSchedule/{schedule_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

schedule_id   integer     

The ID of the schedule. Example: 1

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()

Request      

PUT api/examSchedule/{schedule_id}

PATCH api/examSchedule/{schedule_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

schedule_id   integer     

The ID of the schedule. Example: 1

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()

Request      

DELETE api/examSchedule/{schedule_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

schedule_id   integer     

The ID of the schedule. Example: 1

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."
}
 

Request      

GET api/gradingScheme

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/gradingScheme

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/gradingScheme/{grading_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

grading_id   integer     

The ID of the grading. Example: 1

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()

Request      

PUT api/gradingScheme/{grading_id}

PATCH api/gradingScheme/{grading_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

grading_id   integer     

The ID of the grading. Example: 1

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()

Request      

DELETE api/gradingScheme/{grading_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

grading_id   integer     

The ID of the grading. Example: 1

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."
}
 

Request      

GET api/studentMark

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/studentMark

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/studentMark/{mark_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

mark_id   integer     

The ID of the mark. Example: 1

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()

Request      

PUT api/studentMark/{mark_id}

PATCH api/studentMark/{mark_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

mark_id   integer     

The ID of the mark. Example: 1

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()

Request      

DELETE api/studentMark/{mark_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

mark_id   integer     

The ID of the mark. Example: 1

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."
}
 

Request      

GET api/studentReportCard

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/studentReportCard

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/studentReportCard/{report_card_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

report_card_id   integer     

The ID of the report card. Example: 1

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()

Request      

PUT api/studentReportCard/{report_card_id}

PATCH api/studentReportCard/{report_card_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

report_card_id   integer     

The ID of the report card. Example: 1

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()

Request      

DELETE api/studentReportCard/{report_card_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

report_card_id   integer     

The ID of the report card. Example: 1

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."
}
 

Request      

GET api/feeCategory

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/feeCategory

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/feeCategory/{fee_category_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

fee_category_id   integer     

The ID of the fee category. Example: 1

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()

Request      

PUT api/feeCategory/{fee_category_id}

PATCH api/feeCategory/{fee_category_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

fee_category_id   integer     

The ID of the fee category. Example: 1

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()

Request      

DELETE api/feeCategory/{fee_category_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

fee_category_id   integer     

The ID of the fee category. Example: 1

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."
}
 

Request      

GET api/feeStructure

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/feeStructure

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/feeStructure/{fee_structure_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

fee_structure_id   integer     

The ID of the fee structure. Example: 1

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()

Request      

PUT api/feeStructure/{fee_structure_id}

PATCH api/feeStructure/{fee_structure_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

fee_structure_id   integer     

The ID of the fee structure. Example: 1

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()

Request      

DELETE api/feeStructure/{fee_structure_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

fee_structure_id   integer     

The ID of the fee structure. Example: 1

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."
}
 

Request      

GET api/studentFee

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/studentFee

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/studentFee/{student_fee_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_fee_id   integer     

The ID of the student fee. Example: 1

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()

Request      

PUT api/studentFee/{student_fee_id}

PATCH api/studentFee/{student_fee_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_fee_id   integer     

The ID of the student fee. Example: 1

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()

Request      

DELETE api/studentFee/{student_fee_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_fee_id   integer     

The ID of the student fee. Example: 1

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."
}
 

Request      

GET api/feePayment

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/feePayment

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/feePayment/{payment_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

payment_id   integer     

The ID of the payment. Example: 1

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()

Request      

PUT api/feePayment/{payment_id}

PATCH api/feePayment/{payment_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

payment_id   integer     

The ID of the payment. Example: 1

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()

Request      

DELETE api/feePayment/{payment_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

payment_id   integer     

The ID of the payment. Example: 1

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."
}
 

Request      

GET api/discount

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/discount

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/discount/{discount_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

discount_id   integer     

The ID of the discount. Example: 1

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()

Request      

PUT api/discount/{discount_id}

PATCH api/discount/{discount_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

discount_id   integer     

The ID of the discount. Example: 1

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()

Request      

DELETE api/discount/{discount_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

discount_id   integer     

The ID of the discount. Example: 1

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."
}
 

Request      

GET api/studentDiscount

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/studentDiscount

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/studentDiscount/{student_discount_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_discount_id   integer     

The ID of the student discount. Example: 1

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()

Request      

PUT api/studentDiscount/{student_discount_id}

PATCH api/studentDiscount/{student_discount_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_discount_id   integer     

The ID of the student discount. Example: 1

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()

Request      

DELETE api/studentDiscount/{student_discount_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_discount_id   integer     

The ID of the student discount. Example: 1

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."
}
 

Request      

GET api/expense

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/expense

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/expense/{expense_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 1

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()

Request      

PUT api/expense/{expense_id}

PATCH api/expense/{expense_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 1

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()

Request      

DELETE api/expense/{expense_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

expense_id   integer     

The ID of the expense. Example: 1

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."
}
 

Request      

GET api/financialReport

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/financialReport

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/financialReport/{report_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

report_id   integer     

The ID of the report. Example: 1

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()

Request      

PUT api/financialReport/{report_id}

PATCH api/financialReport/{report_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

report_id   integer     

The ID of the report. Example: 1

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()

Request      

DELETE api/financialReport/{report_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

report_id   integer     

The ID of the report. Example: 1

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."
}
 

Request      

GET api/hostels

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/hostels

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

hostel_name   string     

Must not be greater than 100 characters. Example: b

hostel_type   string     

Example: Co-ed

Must be one of:
  • Boys
  • Girls
  • Co-ed
total_capacity   integer     

Must be at least 1. Example: 22

available_capacity   integer     

Must be at least 0. Example: 84

location   string  optional    

Must not be greater than 100 characters. Example: z

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."
}
 

Request      

GET api/hostels/{hostel_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

hostel_id   integer     

The ID of the hostel. Example: 1

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()

Request      

PUT api/hostels/{hostel_id}

PATCH api/hostels/{hostel_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

hostel_id   integer     

The ID of the hostel. Example: 1

Body Parameters

hostel_name   string  optional    

Must not be greater than 100 characters. Example: b

hostel_type   string  optional    

Example: Co-ed

Must be one of:
  • Boys
  • Girls
  • Co-ed
total_capacity   integer  optional    

Must be at least 1. Example: 22

available_capacity   integer  optional    

Must be at least 0. Example: 84

location   string  optional    

Must not be greater than 100 characters. Example: z

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()

Request      

DELETE api/hostels/{hostel_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

hostel_id   integer     

The ID of the hostel. Example: 1

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."
}
 

Request      

GET api/hostel-rooms

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/hostel-rooms

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

hostel_id   integer     

The hostel_id of an existing record in the hostels table. Example: 16

room_number   string     

Must not be greater than 10 characters. Example: ngzmiy

room_type   string     

Example: Single

Must be one of:
  • Single
  • Double
  • Triple
  • Quad
capacity   integer     

Must be at least 1. Example: 16

occupied   integer  optional    

Must be at least 0. Example: 42

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."
}
 

Request      

GET api/hostel-rooms/{room_room_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

room_room_id   integer     

The ID of the room room. Example: 1

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()

Request      

PUT api/hostel-rooms/{room_room_id}

PATCH api/hostel-rooms/{room_room_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

room_room_id   integer     

The ID of the room room. Example: 1

Body Parameters

hostel_id   integer  optional    

The hostel_id of an existing record in the hostels table. Example: 16

room_number   string  optional    

Must not be greater than 10 characters. Example: ngzmiy

room_type   string  optional    

Example: Triple

Must be one of:
  • Single
  • Double
  • Triple
  • Quad
capacity   integer  optional    

Must be at least 1. Example: 16

occupied   integer  optional    

Must be at least 0. Example: 42

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()

Request      

DELETE api/hostel-rooms/{room_room_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

room_room_id   integer     

The ID of the room room. Example: 1

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."
}
 

Request      

GET api/student-hostels

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/student-hostels

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

student_id   integer     

Example: 16

hostel_id   integer     

The hostel_id of an existing record in the hostels table. Example: 16

room_id   integer     

The room_id of an existing record in the rooms table. Example: 16

assigned_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

checkout_date   string  optional    

Must be a valid date. Must be a date after or equal to assigned_date. Example: 2052-05-26

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."
}
 

Request      

GET api/student-hostels/{studentHostel_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

studentHostel_id   integer     

The ID of the studentHostel. Example: 1

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()

Request      

PUT api/student-hostels/{studentHostel_id}

PATCH api/student-hostels/{studentHostel_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

studentHostel_id   integer     

The ID of the studentHostel. Example: 1

Body Parameters

student_id   integer  optional    

Example: 16

hostel_id   integer  optional    

The hostel_id of an existing record in the hostels table. Example: 16

room_id   integer  optional    

The room_id of an existing record in the rooms table. Example: 16

assigned_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

checkout_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

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()

Request      

DELETE api/student-hostels/{studentHostel_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

studentHostel_id   integer     

The ID of the studentHostel. Example: 1

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."
}
 

Request      

GET api/transportation

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/transportation

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

transport_name   string     

Must not be greater than 100 characters. Example: b

transport_type   string     

Example: Van

Must be one of:
  • Bus
  • Van
  • Shuttle
capacity   integer     

Must be at least 1. Example: 22

route   string  optional    

Must not be greater than 255 characters. Example: g

departure_time   string  optional    

Must be a valid date in the format H:i. Example: 17:54

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."
}
 

Request      

GET api/transportation/{transport_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

transport_id   integer     

The ID of the transport. Example: 1

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()

Request      

PUT api/transportation/{transport_id}

PATCH api/transportation/{transport_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

transport_id   integer     

The ID of the transport. Example: 1

Body Parameters

transport_name   string  optional    

Must not be greater than 100 characters. Example: b

transport_type   string  optional    

Example: Shuttle

Must be one of:
  • Bus
  • Van
  • Shuttle
capacity   integer  optional    

Must be at least 1. Example: 22

route   string  optional    

Must not be greater than 255 characters. Example: g

departure_time   string  optional    

Must be a valid date in the format H:i. Example: 17:54

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()

Request      

DELETE api/transportation/{transport_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

transport_id   integer     

The ID of the transport. Example: 1

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."
}
 

Request      

GET api/student-transport

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/student-transport

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

student_id   integer     

Example: 16

transport_id   integer     

The transport_id of an existing record in the transportation table. Example: 16

pickup_location   string  optional    

Must not be greater than 255 characters. Example: n

drop_location   string  optional    

Must not be greater than 255 characters. Example: g

assigned_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

leave_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

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."
}
 

Request      

GET api/student-transport/{studentTransport_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

studentTransport_id   integer     

The ID of the studentTransport. Example: 1

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()

Request      

PUT api/student-transport/{studentTransport_id}

PATCH api/student-transport/{studentTransport_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

studentTransport_id   integer     

The ID of the studentTransport. Example: 1

Body Parameters

student_id   integer  optional    

Example: 16

transport_id   integer  optional    

The transport_id of an existing record in the transportation table. Example: 16

pickup_location   string  optional    

Must not be greater than 255 characters. Example: n

drop_location   string  optional    

Must not be greater than 255 characters. Example: g

assigned_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

leave_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

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()

Request      

DELETE api/student-transport/{studentTransport_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

studentTransport_id   integer     

The ID of the studentTransport. Example: 1

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."
}
 

Request      

GET api/facilities

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/facilities

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

facility_name   string     

Must not be greater than 100 characters. Example: b

facility_type   string     

Example: Sports

Must be one of:
  • Sports
  • Library
  • Cafeteria
  • Lab
location   string  optional    

Must not be greater than 100 characters. Example: n

capacity   integer     

Must be at least 1. Example: 67

available_capacity   integer     

Must be at least 0. Example: 12

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."
}
 

Request      

GET api/facilities/{facility_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

facility_id   integer     

The ID of the facility. Example: 1

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()

Request      

PUT api/facilities/{facility_id}

PATCH api/facilities/{facility_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

facility_id   integer     

The ID of the facility. Example: 1

Body Parameters

facility_name   string  optional    

Must not be greater than 100 characters. Example: b

facility_type   string  optional    

Example: Cafeteria

Must be one of:
  • Sports
  • Library
  • Cafeteria
  • Lab
location   string  optional    

Must not be greater than 100 characters. Example: n

capacity   integer  optional    

Must be at least 1. Example: 67

available_capacity   integer  optional    

Must be at least 0. Example: 12

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()

Request      

DELETE api/facilities/{facility_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

facility_id   integer     

The ID of the facility. Example: 1

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."
}
 

Request      

GET api/facility-bookings

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/facility-bookings

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

student_id   integer     

Example: 16

facility_id   integer     

The facility_id of an existing record in the facility_management table. Example: 16

booking_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

start_time   string     

Must be a valid date in the format H:i. Example: 17:54

end_time   string     

Must be a valid date in the format H:i. Must be a date after start_time. Example: 2052-05-26

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."
}
 

Request      

GET api/facility-bookings/{facilityBooking_booking_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

facilityBooking_booking_id   integer     

The ID of the facilityBooking booking. Example: 1

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()

Request      

PUT api/facility-bookings/{facilityBooking_booking_id}

PATCH api/facility-bookings/{facilityBooking_booking_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

facilityBooking_booking_id   integer     

The ID of the facilityBooking booking. Example: 1

Body Parameters

student_id   integer  optional    

Example: 16

facility_id   integer  optional    

The facility_id of an existing record in the facility_management table. Example: 16

booking_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:47

start_time   string  optional    

Must be a valid date in the format H:i. Example: 17:54

end_time   string  optional    

Must be a valid date in the format H:i. Example: 17:54

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()

Request      

DELETE api/facility-bookings/{facilityBooking_booking_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

facilityBooking_booking_id   integer     

The ID of the facilityBooking booking. Example: 1

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."
}
 

Request      

GET api/roles

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/roles

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 50 characters. Example: b

description   string  optional    

Example: Eius et animi quos velit et.

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."
}
 

Request      

GET api/roles/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the role. Example: 1

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()

Request      

PUT api/roles/{id}

PATCH api/roles/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the role. Example: 1

Body Parameters

name   string  optional    
description   string  optional    

Example: Eius et animi quos velit et.

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()

Request      

DELETE api/roles/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the role. Example: 1

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()

Request      

PUT api/roles/{role_id}/sync-permissions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

role_id   integer     

The ID of the role. Example: 1

Body Parameters

permissions   string[]  optional    

The id of an existing record in the permissions table.

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."
}
 

Request      

GET api/permissions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/permissions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Must not be greater than 100 characters. Example: b

description   string  optional    

Example: Eius et animi quos velit et.

module_name   string  optional    

Must not be greater than 100 characters. Example: v

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."
}
 

Request      

GET api/permissions/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the permission. Example: 1

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()

Request      

PUT api/permissions/{id}

PATCH api/permissions/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the permission. Example: 1

Body Parameters

name   string  optional    
description   string  optional    

Example: Eius et animi quos velit et.

module_name   string  optional    

Must not be greater than 100 characters. Example: v

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()

Request      

DELETE api/permissions/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the permission. Example: 1

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."
}
 

Request      

GET api/role-permissions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/role-permissions/{role_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

role_id   integer     

The ID of the role. Example: 1

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()

Request      

PUT api/role-permissions/{role_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

role_id   integer     

The ID of the role. Example: 1

Body Parameters

permissions   string[]  optional    

The id of an existing record in the permissions table.

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."
}
 

Request      

GET api/user-roles

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/user-roles/{user_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 1

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()

Request      

PUT api/user-roles/{user_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 1

Body Parameters

roles   string[]  optional    

The id of an existing record in the roles table.

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."
}
 

Request      

GET api/user-permissions/{user_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 1

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()

Request      

PUT api/user-permissions/{user_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

user_id   integer     

The ID of the user. Example: 1

Body Parameters

permissions   string[]  optional    

The id of an existing record in the permissions table.

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."
}
 

Request      

GET api/staff/departments

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/staff/departments

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/staff

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/staff

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/staff/{staff_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_id   integer     

The ID of the staff. Example: 1

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()

Request      

PUT api/staff/{staff_id}

PATCH api/staff/{staff_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_id   integer     

The ID of the staff. Example: 1

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()

Request      

DELETE api/staff/{staff_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_id   integer     

The ID of the staff. Example: 1

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()

Request      

POST api/staff/{staff_staff_id}/attendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_staff_id   integer     

The ID of the staff staff. Example: 1

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()

Request      

POST api/staff/{staff_staff_id}/salary

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_staff_id   integer     

The ID of the staff staff. Example: 1

Body Parameters

basic_salary   number     

Must be between 0 and 9999999.99. Example: 1

allowances   number  optional    

Must be between 0 and 9999999.99. Example: 1

deductions   number  optional    

Must be between 0 and 9999999.99. Example: 0

net_salary   number  optional    

Must be between 0 and 9999999.99. Example: 1

payment_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

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()

Request      

POST api/staff/{staff_staff_id}/reviews

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_staff_id   integer     

The ID of the staff staff. Example: 1

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()

Request      

POST api/staff/{staff_staff_id}/leave-requests

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

staff_staff_id   integer     

The ID of the staff staff. Example: 1

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."
}
 

Request      

GET api/students

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/students

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

first_name   string     

Must not be greater than 100 characters. Example: b

last_name   string     

Must not be greater than 100 characters. Example: n

date_of_birth   string     

Must be a valid date. Example: 2026-05-03T17:54:46

gender   string     

Example: Female

Must be one of:
  • Male
  • Female
  • Other
blood_group   string  optional    

Must not be greater than 5 characters. Example: g

nationality   string  optional    

Must not be greater than 50 characters. Example: z

religion   string  optional    

Must not be greater than 50 characters. Example: m

current_address   string     

Example: architecto

permanent_address   string     

Example: architecto

phone_number   string  optional    

Must not be greater than 20 characters. Example: ngzmiyvdljnikhwa

email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: breitenberg.gilbert@example.com

profile_photo   string  optional    

Must not be greater than 255 characters. Example: u

date_of_admission   string     

Must be a valid date. Example: 2026-05-03T17:54:46

admission_number   string     

Must not be greater than 50 characters. Example: w

status   string  optional    

Example: Graduated

Must be one of:
  • Active
  • Inactive
  • Graduated
  • Transferred
father_name   string  optional    

Parent info. Must not be greater than 100 characters. Example: p

father_phone   string  optional    

Must not be greater than 20 characters. Example: wlvqwrsitcpscqld

father_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: nstokes@example.org

father_occupation   string  optional    

Must not be greater than 100 characters. Example: w

mother_name   string  optional    

Must not be greater than 100 characters. Example: t

mother_phone   string  optional    

Must not be greater than 20 characters. Example: ujwvlxjklqppwqbe

mother_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: kutch.cynthia@example.org

mother_occupation   string  optional    

Must not be greater than 100 characters. Example: q

guardian_name   string  optional    

Must not be greater than 100 characters. Example: i

guardian_relationship   string  optional    

Must not be greater than 50 characters. Example: t

guardian_phone   string  optional    

Must not be greater than 20 characters. Example: pxntltcvipojsaus

guardian_address   string  optional    

Example: architecto

previous_educations   object[]  optional    

Previous education.

school_name   string  optional    

This field is required when previous_educations is present. Must not be greater than 150 characters. Example: g

board   string  optional    

This field is required when previous_educations is present. Must not be greater than 100 characters. Example: z

class_completed   string  optional    

This field is required when previous_educations is present. Must not be greater than 20 characters. Example: miyvdljnikhwaykc

percentage   number  optional    

Must be between 0 and 100. Example: 0

year_of_passing   string  optional    

This field is required when previous_educations is present. Must be 4 digits. Example: 9775

height_cm   number  optional    

Health record. Must be between 0 and 250. Example: 1

weight_kg   number  optional    

Must be between 0 and 300. Example: 0

allergies   string  optional    

Example: architecto

medical_conditions   string  optional    

Example: architecto

vaccination_status   string  optional    

Must not be greater than 255 characters. Example: n

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."
}
 

Request      

GET api/students/{student_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_id   integer     

The ID of the student. Example: 1

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()

Request      

PUT api/students/{student_id}

PATCH api/students/{student_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_id   integer     

The ID of the student. Example: 1

Body Parameters

first_name   string  optional    

Must not be greater than 100 characters. Example: b

last_name   string  optional    

Must not be greater than 100 characters. Example: n

date_of_birth   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

gender   string  optional    

Example: Other

Must be one of:
  • Male
  • Female
  • Other
blood_group   string  optional    

Must not be greater than 5 characters. Example: g

nationality   string  optional    

Must not be greater than 50 characters. Example: z

religion   string  optional    

Must not be greater than 50 characters. Example: m

current_address   string  optional    

Example: architecto

permanent_address   string  optional    

Example: architecto

phone_number   string  optional    

Must not be greater than 20 characters. Example: ngzmiyvdljnikhwa

email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: breitenberg.gilbert@example.com

profile_photo   string  optional    

Must not be greater than 255 characters. Example: u

date_of_admission   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

admission_number   string  optional    
status   string  optional    

Example: Transferred

Must be one of:
  • Active
  • Inactive
  • Graduated
  • Transferred
father_name   string  optional    

Must not be greater than 100 characters. Example: w

father_phone   string  optional    

Must not be greater than 20 characters. Example: pwlvqwrsitcpscql

father_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: sleffler@example.org

father_occupation   string  optional    

Must not be greater than 100 characters. Example: r

mother_name   string  optional    

Must not be greater than 100 characters. Example: w

mother_phone   string  optional    

Must not be greater than 20 characters. Example: tujwvlxjklqppwqb

mother_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: madisen51@example.net

mother_occupation   string  optional    

Must not be greater than 100 characters. Example: o

guardian_name   string  optional    

Must not be greater than 100 characters. Example: q

guardian_relationship   string  optional    

Must not be greater than 50 characters. Example: i

guardian_phone   string  optional    

Must not be greater than 20 characters. Example: tpxntltcvipojsau

guardian_address   string  optional    

Example: architecto

height_cm   number  optional    

Must be between 0 and 250. Example: 1

weight_kg   number  optional    

Must be between 0 and 300. Example: 0

allergies   string  optional    

Example: architecto

medical_conditions   string  optional    

Example: architecto

vaccination_status   string  optional    

Must not be greater than 255 characters. Example: n

previous_educations   object[]  optional    
school_name   string  optional    

Must not be greater than 150 characters. Example: g

board   string  optional    

Must not be greater than 100 characters. Example: z

class_completed   string  optional    

Must not be greater than 20 characters. Example: miyvdljnikhwaykc

percentage   number  optional    

Must be between 0 and 100. Example: 0

year_of_passing   string  optional    

Must be 4 digits. Example: 9775

contacts   object[]  optional    
contact_type   string  optional    

Example: emergency

Must be one of:
  • phone
  • mobile
  • emergency
  • work
  • fax
  • other
contact_value   string  optional    

Must not be greater than 100 characters. Example: n

is_primary   boolean  optional    

Example: true

label   string  optional    

Must not be greater than 50 characters. Example: g

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()

Request      

DELETE api/students/{student_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_id   integer     

The ID of the student. Example: 1

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()

Request      

POST api/students/{student_student_id}/parent

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

father_name   string  optional    

Must not be greater than 100 characters. Example: b

father_phone   string  optional    

Must not be greater than 20 characters. Example: ngzmiyvdljnikhwa

father_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: breitenberg.gilbert@example.com

father_occupation   string  optional    

Must not be greater than 100 characters. Example: u

mother_name   string  optional    

Must not be greater than 100 characters. Example: w

mother_phone   string  optional    

Must not be greater than 20 characters. Example: pwlvqwrsitcpscql

mother_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: sleffler@example.org

mother_occupation   string  optional    

Must not be greater than 100 characters. Example: r

guardian_name   string  optional    

Must not be greater than 100 characters. Example: w

guardian_relationship   string  optional    

Must not be greater than 50 characters. Example: t

guardian_phone   string  optional    

Must not be greater than 20 characters. Example: ujwvlxjklqppwqbe

guardian_address   string  optional    

Example: architecto

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()

Request      

PUT api/students/{student_student_id}/parent

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

father_name   string  optional    

Must not be greater than 100 characters. Example: b

father_phone   string  optional    

Must not be greater than 20 characters. Example: ngzmiyvdljnikhwa

father_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: breitenberg.gilbert@example.com

father_occupation   string  optional    

Must not be greater than 100 characters. Example: u

mother_name   string  optional    

Must not be greater than 100 characters. Example: w

mother_phone   string  optional    

Must not be greater than 20 characters. Example: pwlvqwrsitcpscql

mother_email   string  optional    

Must be a valid email address. Must not be greater than 100 characters. Example: sleffler@example.org

mother_occupation   string  optional    

Must not be greater than 100 characters. Example: r

guardian_name   string  optional    

Must not be greater than 100 characters. Example: w

guardian_relationship   string  optional    

Must not be greater than 50 characters. Example: t

guardian_phone   string  optional    

Must not be greater than 20 characters. Example: ujwvlxjklqppwqbe

guardian_address   string  optional    

Example: architecto

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()

Request      

POST api/students/{student_student_id}/education

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

school_name   string     

Must not be greater than 150 characters. Example: b

board   string     

Must not be greater than 100 characters. Example: n

class_completed   string     

Must not be greater than 20 characters. Example: gzmiyvdljnikhway

percentage   number  optional    

Must be between 0 and 100. Example: 0

year_of_passing   string     

Must be 4 digits. Example: 9775

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()

Request      

PUT api/students/{student_student_id}/education/{education_education_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

education_education_id   integer     

The ID of the education education. Example: 1

Body Parameters

school_name   string  optional    

Must not be greater than 150 characters. Example: b

board   string  optional    

Must not be greater than 100 characters. Example: n

class_completed   string  optional    

Must not be greater than 20 characters. Example: gzmiyvdljnikhway

percentage   number  optional    

Must be between 0 and 100. Example: 0

year_of_passing   string  optional    

Must be 4 digits. Example: 9775

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()

Request      

DELETE api/students/{student_student_id}/education/{education_education_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

education_education_id   integer     

The ID of the education education. Example: 1

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."
}
 

Request      

GET api/students/{student_student_id}/health

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

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()

Request      

POST api/students/{student_student_id}/health

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

height_cm   number  optional    

Must be between 0 and 250. Example: 1

weight_kg   number  optional    

Must be between 0 and 300. Example: 1

blood_group   string  optional    

Must not be greater than 5 characters. Example: g

allergies   string  optional    

Example: architecto

medical_conditions   string  optional    

Example: architecto

vaccination_status   string  optional    

Must not be greater than 255 characters. Example: n

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()

Request      

PUT api/students/{student_student_id}/health/{healthRecord_health_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

healthRecord_health_id   integer     

The ID of the healthRecord health. Example: 1

Body Parameters

height_cm   number  optional    

Must be between 0 and 250. Example: 1

weight_kg   number  optional    

Must be between 0 and 300. Example: 1

blood_group   string  optional    

Must not be greater than 5 characters. Example: g

allergies   string  optional    

Example: architecto

medical_conditions   string  optional    

Example: architecto

vaccination_status   string  optional    

Must not be greater than 255 characters. Example: n

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()

Request      

DELETE api/students/{student_student_id}/health/{healthRecord_health_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

healthRecord_health_id   integer     

The ID of the healthRecord health. Example: 1

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()

Request      

POST api/students/{student_student_id}/enroll

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

batch_id   integer     

The batch_id of an existing record in the batches table. Example: 16

academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

enrollment_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

status   string  optional    

Example: Graduated

Must be one of:
  • Active
  • Inactive
  • Graduated
  • Transferred
remarks   string  optional    

Example: architecto

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()

Request      

PUT api/students/{student_student_id}/enrollment/{enrollment_enrollment_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

enrollment_enrollment_id   integer     

The ID of the enrollment enrollment. Example: 1

Body Parameters

enrollment_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

status   string  optional    

Example: Graduated

Must be one of:
  • Active
  • Inactive
  • Graduated
  • Transferred
remarks   string  optional    

Example: architecto

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()

Request      

DELETE api/students/{student_student_id}/enrollment/{enrollment_enrollment_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

enrollment_enrollment_id   integer     

The ID of the enrollment enrollment. Example: 1

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."
}
 

Request      

GET api/students/{student_student_id}/enrollments

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

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()

Request      

POST api/students/{student_student_id}/promote

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

from_batch_id   integer     

The batch_id of an existing record in the batches table. Example: 16

to_batch_id   integer     

The value and from_batch_id must be different. The batch_id of an existing record in the batches table. Example: 16

from_academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

to_academic_year_id   integer  optional    

The academic_year_id of an existing record in the academic_years table. Example: 16

promotion_date   string     

Must be a valid date. Example: 2026-05-03T17:54:46

remarks   string  optional    

Example: architecto

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."
}
 

Request      

GET api/students/{student_student_id}/promotions

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

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()

Request      

DELETE api/students/{student_student_id}/promotion/{promotion_promotion_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

promotion_promotion_id   integer     

The ID of the promotion promotion. Example: 16

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."
}
 

Request      

GET api/students/{student_student_id}/documents

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

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()

Request      

POST api/students/{student_student_id}/documents

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

document_type   string     

Example: id_proof

Must be one of:
  • birth_certificate
  • transfer_certificate
  • character_certificate
  • previous_school_certificate
  • medical_certificate
  • passport
  • id_proof
  • address_proof
  • photograph
  • other
document_name   string     

Must not be greater than 255 characters. Example: b

file_path   string     

Must not be greater than 500 characters. Example: n

file_size   integer  optional    

Example: 16

mime_type   string  optional    

Must not be greater than 100 characters. Example: n

uploaded_by   integer  optional    

The id of an existing record in the users table. Example: 16

notes   string  optional    

Example: architecto

expiry_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

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()

Request      

PUT api/students/{student_student_id}/document/{document_document_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

document_document_id   integer     

The ID of the document document. Example: 1

Body Parameters

document_type   string  optional    

Example: passport

Must be one of:
  • birth_certificate
  • transfer_certificate
  • character_certificate
  • previous_school_certificate
  • medical_certificate
  • passport
  • id_proof
  • address_proof
  • photograph
  • other
document_name   string  optional    

Must not be greater than 255 characters. Example: b

file_path   string  optional    

Must not be greater than 500 characters. Example: n

file_size   integer  optional    

Example: 16

mime_type   string  optional    

Must not be greater than 100 characters. Example: n

notes   string  optional    

Example: architecto

expiry_date   string  optional    

Must be a valid date. Example: 2026-05-03T17:54:46

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()

Request      

DELETE api/students/{student_student_id}/document/{document_document_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

document_document_id   integer     

The ID of the document document. Example: 1

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."
}
 

Request      

GET api/students/{student_student_id}/activities

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

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."
}
 

Request      

GET api/students/{student_student_id}/contacts

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

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()

Request      

POST api/students/{student_student_id}/contacts

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

Body Parameters

contact_type   string     

Example: work

Must be one of:
  • phone
  • mobile
  • emergency
  • work
  • fax
  • other
contact_value   string     

Must not be greater than 100 characters. Example: b

is_primary   boolean  optional    

Example: true

label   string  optional    

Must not be greater than 50 characters. Example: n

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()

Request      

PUT api/students/{student_student_id}/contact/{contact_contact_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

contact_contact_id   integer     

The ID of the contact contact. Example: 1

Body Parameters

contact_type   string  optional    

Example: mobile

Must be one of:
  • phone
  • mobile
  • emergency
  • work
  • fax
  • other
contact_value   string  optional    

Must not be greater than 100 characters. Example: b

is_primary   boolean  optional    

Example: true

label   string  optional    

Must not be greater than 50 characters. Example: n

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()

Request      

DELETE api/students/{student_student_id}/contact/{contact_contact_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

student_student_id   integer     

The ID of the student student. Example: 1

contact_contact_id   integer     

The ID of the contact contact. Example: 1

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."
}
 

Request      

GET api/subject

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/subject

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/subject/{subject_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

subject_id   integer     

The ID of the subject. Example: 1

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()

Request      

PUT api/subject/{subject_id}

PATCH api/subject/{subject_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

subject_id   integer     

The ID of the subject. Example: 1

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()

Request      

DELETE api/subject/{subject_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

subject_id   integer     

The ID of the subject. Example: 1

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."
}
 

Request      

GET api/classSubject

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/classSubject

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/classSubject/{class_subject_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

class_subject_id   integer     

The ID of the class subject. Example: 1

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()

Request      

PUT api/classSubject/{class_subject_id}

PATCH api/classSubject/{class_subject_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

class_subject_id   integer     

The ID of the class subject. Example: 1

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()

Request      

DELETE api/classSubject/{class_subject_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

class_subject_id   integer     

The ID of the class subject. Example: 1

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."
}
 

Request      

GET api/curriculum

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/curriculum

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/curriculum/{curriculum_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

curriculum_id   integer     

The ID of the curriculum. Example: 1

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()

Request      

PUT api/curriculum/{curriculum_id}

PATCH api/curriculum/{curriculum_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

curriculum_id   integer     

The ID of the curriculum. Example: 1

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()

Request      

DELETE api/curriculum/{curriculum_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

curriculum_id   integer     

The ID of the curriculum. Example: 1

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."
}
 

Request      

GET api/lessonPlan

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/lessonPlan

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/lessonPlan/{lesson_plan_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

lesson_plan_id   integer     

The ID of the lesson plan. Example: 1

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()

Request      

PUT api/lessonPlan/{lesson_plan_id}

PATCH api/lessonPlan/{lesson_plan_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

lesson_plan_id   integer     

The ID of the lesson plan. Example: 1

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()

Request      

DELETE api/lessonPlan/{lesson_plan_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

lesson_plan_id   integer     

The ID of the lesson plan. Example: 1

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."
}
 

Request      

GET api/textbook

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/textbook

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/textbook/{textbook_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

textbook_id   integer     

The ID of the textbook. Example: 1

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()

Request      

PUT api/textbook/{textbook_id}

PATCH api/textbook/{textbook_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

textbook_id   integer     

The ID of the textbook. Example: 1

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()

Request      

DELETE api/textbook/{textbook_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

textbook_id   integer     

The ID of the textbook. Example: 1

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."
}
 

Request      

GET api/teacherSubjectMapping

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/teacherSubjectMapping

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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."
}
 

Request      

GET api/teacherSubjectMapping/{mapping_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

mapping_id   integer     

The ID of the mapping. Example: 1

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()

Request      

PUT api/teacherSubjectMapping/{mapping_id}

PATCH api/teacherSubjectMapping/{mapping_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

mapping_id   integer     

The ID of the mapping. Example: 1

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()

Request      

DELETE api/teacherSubjectMapping/{mapping_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

mapping_id   integer     

The ID of the mapping. Example: 1

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."
}
 

Request      

GET api/room

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/room

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

room_name   string     

Must not be greater than 50 characters. Example: b

room_type   string     

Example: Office

Must be one of:
  • Classroom
  • Lab
  • Auditorium
  • Office
capacity   integer     

Must be at least 1. Example: 22

description   string  optional    

Example: Eius et animi quos velit et.

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."
}
 

Request      

GET api/room/{room_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

room_id   integer     

The ID of the room. Example: 1

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()

Request      

PUT api/room/{room_id}

PATCH api/room/{room_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

room_id   integer     

The ID of the room. Example: 1

Body Parameters

room_name   string  optional    
room_type   string     

Example: Classroom

Must be one of:
  • Classroom
  • Lab
  • Auditorium
  • Office
capacity   integer     

Must be at least 1. Example: 16

description   string  optional    

Example: Eius et animi quos velit et.

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()

Request      

DELETE api/room/{room_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

room_id   integer     

The ID of the room. Example: 1

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."
}
 

Request      

GET api/day

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/day

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

day_name   string     

Must not be greater than 20 characters. Example: bngzmiyvdljnikhw

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."
}
 

Request      

GET api/day/{day_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

day_id   integer     

The ID of the day. Example: 1

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()

Request      

PUT api/day/{day_id}

PATCH api/day/{day_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

day_id   integer     

The ID of the day. Example: 1

Body Parameters

day_name   string  optional    

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()

Request      

DELETE api/day/{day_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

day_id   integer     

The ID of the day. Example: 1

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."
}
 

Request      

GET api/period

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/period

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

start_time   string     

Must be a valid date in the format H:i. Example: 17:54

end_time   string     

Must be a valid date in the format H:i. Must be a date after start_time. Example: 2052-05-26

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."
}
 

Request      

GET api/period/{period_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

period_id   integer     

The ID of the period. Example: 1

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()

Request      

PUT api/period/{period_id}

PATCH api/period/{period_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

period_id   integer     

The ID of the period. Example: 1

Body Parameters

start_time   string     

Must be a valid date in the format H:i. Example: 17:54

end_time   string     

Must be a valid date in the format H:i. Must be a date after start_time. Example: 2052-05-26

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()

Request      

DELETE api/period/{period_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

period_id   integer     

The ID of the period. Example: 1

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."
}
 

Request      

GET api/timetable

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/timetable

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

class_id   integer     

The class_id of an existing record in the classes table. Example: 16

section_id   integer     

The section_id of an existing record in the sections table. Example: 16

academic_year_id   integer     

The academic_year_id of an existing record in the academic_years table. Example: 16

day_id   integer     

The day_id of an existing record in the days table. Example: 16

period_id   integer     

The period_id of an existing record in the periods table. Example: 16

subject_id   integer     

The subject_id of an existing record in the subjects table. Example: 16

teacher_id   integer     

The staff_id of an existing record in the staff table. Example: 16

room_id   integer     

The room_id of an existing record in the rooms table. Example: 16

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."
}
 

Request      

GET api/timetable/{timetable_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

timetable_id   integer     

The ID of the timetable. Example: 1

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()

Request      

PUT api/timetable/{timetable_id}

PATCH api/timetable/{timetable_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

timetable_id   integer     

The ID of the timetable. Example: 1

Body Parameters

class_id   integer     

The class_id of an existing record in the classes table. Example: 16

section_id   integer     

The section_id of an existing record in the sections table. Example: 16

academic_year_id   integer     

The academic_year_id of an existing record in the academic_years table. Example: 16

day_id   integer     

The day_id of an existing record in the days table. Example: 16

period_id   integer     

The period_id of an existing record in the periods table. Example: 16

subject_id   integer     

The subject_id of an existing record in the subjects table. Example: 16

teacher_id   integer     

The staff_id of an existing record in the staff table. Example: 16

room_id   integer     

The room_id of an existing record in the rooms table. Example: 16

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()

Request      

DELETE api/timetable/{timetable_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

timetable_id   integer     

The ID of the timetable. Example: 1

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."
}
 

Request      

GET api/substituteAssignment

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/substituteAssignment

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

timetable_id   integer     

The timetable_id of an existing record in the timetables table. Example: 16

original_teacher_id   integer     

The staff_id of an existing record in the staff table. Example: 16

substitute_teacher_id   integer     

The value and original_teacher_id must be different. The staff_id of an existing record in the staff table. Example: 16

date_of_substitution   string     

Must be a valid date. Example: 2026-05-03T17:54:47

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."
}
 

Request      

GET api/substituteAssignment/{substitute_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

substitute_id   integer     

The ID of the substitute. Example: 1

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()

Request      

PUT api/substituteAssignment/{substitute_id}

PATCH api/substituteAssignment/{substitute_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

substitute_id   integer     

The ID of the substitute. Example: 1

Body Parameters

timetable_id   integer     

The timetable_id of an existing record in the timetables table. Example: 16

original_teacher_id   integer     

The staff_id of an existing record in the staff table. Example: 16

substitute_teacher_id   integer     

The value and original_teacher_id must be different. The staff_id of an existing record in the staff table. Example: 16

date_of_substitution   string     

Must be a valid date. Example: 2026-05-03T17:54:47

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()

Request      

DELETE api/substituteAssignment/{substitute_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

substitute_id   integer     

The ID of the substitute. Example: 1

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."
}
 

Request      

GET api/specialEvent

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

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()

Request      

POST api/specialEvent

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

event_name   string     

Must not be greater than 100 characters. Example: b

event_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

start_time   string     

Must be a valid date in the format H:i. Example: 17:54

end_time   string     

Must be a valid date in the format H:i. Must be a date after start_time. Example: 2052-05-26

description   string  optional    

Example: Eius et animi quos velit et.

room_id   integer  optional    

The room_id of an existing record in the rooms table. Example: 16

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."
}
 

Request      

GET api/specialEvent/{event_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

event_id   integer     

The ID of the event. Example: 1

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()

Request      

PUT api/specialEvent/{event_id}

PATCH api/specialEvent/{event_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

event_id   integer     

The ID of the event. Example: 1

Body Parameters

event_name   string     

Must not be greater than 100 characters. Example: b

event_date   string     

Must be a valid date. Example: 2026-05-03T17:54:47

start_time   string     

Must be a valid date in the format H:i. Example: 17:54

end_time   string     

Must be a valid date in the format H:i. Must be a date after start_time. Example: 2052-05-26

description   string  optional    

Example: Eius et animi quos velit et.

room_id   integer  optional    

The room_id of an existing record in the rooms table. Example: 16

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()

Request      

DELETE api/specialEvent/{event_id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

event_id   integer     

The ID of the event. Example: 1