🚀 Student REST API

Welcome! The API server is running successfully.

Status

✅ API Online

Base URL

https://androidapi2026level7it.citttech.com/android_api/students/

POST Create Student

https://androidapi2026level7it.citttech.com/android_api/students/create.php

Request body (JSON):

{ "regno": "RP002", "fname": "John", "lname": "Doe", "phone": "+250788888888", "email": "etienne@gmail.com", "status": "Active", "dob": "2001-05-20" }

GET Read All Students

https://androidapi2026level7it.citttech.com/android_api/students/read.php

Optional: ?regno=RP002 to fetch a single student.

POST Update Student

https://androidapi2026level7it.citttech.com/android_api/students/update.php

Request body (JSON) — regno identifies the record:

{ "regno": "RP002", "fname": "John", "lname": "Doe", "phone": "+250788888888", "email": "etienne@gmail.com", "status": "Inactive", "dob": "2001-05-20" }

POST Delete Student

https://androidapi2026level7it.citttech.com/android_api/students/delete.php

Request body (JSON):

{ "regno": "RP002" }

Response Format

{ "success": true, "message": "Student registered successfully" }

Read endpoints return an additional data array.