Student Management System API is a REST API . I created it as a backend of a web application project . But it can be used only as an REST API.
- Has sections for admin,teachers and students
- Very secure
- Easy to use
- Codes are not very complex
- OOP - Object Oriented Programming
At firstdownload and install XAMPP from apachefriends
Then open XAMMP and start Apache and Mysql
Open phpmyadmin in your browser
Then create a new database named "student-management-system"
Go to "Import" tab in phpmyadmin and upload "student-management-system.sql"
Now you have "student-management-system" database in your XAMMP
Copy this repo and paste it in C:\xampp\htdocs
congratulation! You have installed every thing If you go to "https://localhost/student-management-system/" in your browser you will see this:
Go to student-management-system/api/database.php and replace $host,$username,$password as your need (database.php is the file for connecting to phpmyadmin )
-
PHP
-
Mysql
-
Phpmyadmin
Here are some related links
POST http://localhost/student-management-system/login.php
{
"email":"youremail@domain.com",
"password":"yourpassword"
}
{
"code": "2000",
"message": "You are logged in",
"data": {
"token": "74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"usertype": "admin"
}
}
POST http://localhost/student-management-system/admin.php
{
"token":"d6fa235d7cb8e9803806c3d05d506f01ffa198fee95de3205c153b2dd09191b3",
"action":"add-teacher",
"data":{
"email":"teacher@gmail.com",
"password":"avunix9143",
"username":"Rahul",
"section":"A",
"class":"9",
"contactno":"+8801710962748"
}
}
{
"code": "2005",
"message": "Teacher is created successfully"
}
POST http://localhost/student-management-system/admin.php
{
"token":"74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"action":"add-student",
"data":{
"email":"student01@gmail.com",
"password":"admin9143",
"username":"Rahul",
"section":"A",
"class":"9",
"roll":12,
"contactno":"+8801710962748"
}
}
{
"code": "2003",
"message": "Student is created successfully"
}
POST http://localhost/student-management-system/admin.php
{
"token":"74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"action":"teacher-list",
"data":{
}
}
{
"code": "2053",
"message": "Teacher list is retrieved",
"data": [
{
"userid": "995960612",
"username": "Teacher Argha Nilanjon Nondi Teacher",
"class": "1",
"section": "A"
}
]
}
POST http://localhost/student-management-system/admin.php
{
"token":"74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"action":"teacher-profile",
"data":{
"teacherid":"2102903393"
}
}
{
"code": "2047",
"message": "Teacher profile is retrieved",
"data": {
"email": "teacher1@gmail.com",
"userid": "2102903393",
"username": "Teacher 01",
"usertype": "teacher",
"class": "1",
"section": "B",
"contactno": "+8801710762741"
}
}
POST http://localhost/student-management-system/admin.php
{
"token":"74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"action":"teacher-update",
"data":{
"userid":"2102903393",
"username":"Test username",
"class":"7",
"old-section":"B",
"new-section":"B",
"contactno":"+8801715743000"
}
}
{
"code": "2073",
"message": "Teacher profile is updated"
}
POST http://localhost/student-management-system/admin.php
{
"token":"74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"action":"user-delete",
"data":{
"userid":"2102903393"
}
}
{
"code": "2067",
"message": "User is deleted"
}
POST http://localhost/student-management-system/admin.php
{
"token":"74f5bdd6fa138b472125192fbc03fc3643afeaf9a0396c3f11e9912fd72f531a",
"action":"change-password",
"data":{
"email":"teacher0@gmail.com",
"password":"avunix9143",
"new-password":"avunix9143"
}
}
{
"code": "2099",
"message": "Password is changed"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"add-student",
"data":{
"username":"Mita Ghosh",
"email":"student4@gmail.com",
"password":"avunix9143",
"contactno":"+880171574359",
"roll":"5"
}
}
{
"code": "2003",
"message": "Student is created successfully"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"student-list",
"data":{}
}
{
"code": "2043",
"message": "Student list is retrieved",
"data": [
{
"userid": "1591966086",
"username": "Student 00",
"roll": "1"
},
{
"userid": "1753441896",
"username": "Student 01",
"roll": "2"
}
]
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"own-profile",
"data":{}
}
{
"code": "2047",
"message": "Teacher profile is retrieved",
"data": {
"email": "teacher0@gmail.com",
"userid": "995960612",
"username": "Teacher Argha Nilanjon Nondi Teacher",
"class": "1",
"section": "A",
"contactno": "+8801710762740"
}
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"student-profile",
"data":{
"roll":"1"
}
}
{
"code": "2043",
"message": "Student profile is retrieved",
"data": {
"userid": "1591966086",
"username": "Student 00",
"roll": "1",
"contactno": "+8801710762740",
"email": "student0@gmail.com"
}
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"student-update",
"data":{
"userid":"704241814",
"username":"Mita NOndi",
"contactno":"+88017157000",
"roll":"5"
}
}
{
"code": "2063",
"message": "Student profile is updated"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"student-delete",
"data":{
"roll":"5"
}
}
{
"code": "2021",
"message": "Student is deleted successfully"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"create-checkin",
"data":{
"roll":"2",
"date":"2021-5-17",
"checkin":"9:10",
"presenttype":"AB"
}
}
{
"code": "2035",
"message": "Student is successfully checkin"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"create-checkout",
"data":{
"roll":"2",
"date":"2021-5-17",
"checkout":"10:10"
}
}
{
"code": "3067",
"message": "Student is absent"
}
{
"code": "2036",
"message": "Student is successfully checkout"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"update-check",
"data":{
"roll":"2",
"date":"2021-5-17",
"checkin":"2:20",
"checkout":"22:44",
"presenttype":"PR"
}
}
{
"code": "2066",
"message": "Check is updated"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"student-checklist",
"data":{
"roll":"2"
}
}
{
"code": "2043",
"message": "Student check list is retrieved",
"data": {
"checks": [
{
"workdate": "2021-05-17",
"checkin": "02:20:00",
"checkout": "22:44:00",
"presenttype": "PR"
}
],
"breaks": [
{
"workdate": "2021-09-24",
"timetext": "13:33:17",
"reason": "I am ill",
"status": "Pending"
}
]
}
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"student-breaklist",
"data":{
}
}
{
"code": "2022",
"message": "Breaks is retrieved",
"data": [
{
"roll": "1",
"workdate": "2021-08-13",
"reason": "I have to go the contest",
"timetext": "12:21:00",
"status": "pending"
},
{
"roll": "1",
"workdate": "2021-08-06",
"reason": "I have to go the vet",
"timetext": "12:21:00",
"status": "accept"
}
]
}
POST http://localhost/student-management-system/teacher.php
{
"token":"42417f1fe73f8c41a0809ba3b0f5fc4729c9fc77cb7227d431dd3d8bf8caf94d",
"action":"update-break",
"data":{
"roll":"1",
"date":"2021-08-6",
"status":"accept"
}
}
{
"code": "2026",
"message": "Break status is updated"
}
POST http://localhost/student-management-system/teacher.php
{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"action":"student-info",
"data":{
}
}
{
"code": "2043",
"message": "Student profile is retrieved",
"data": {
"userid": "1591966086",
"username": "Student 00",
"roll": "1",
"class": "1",
"section": "A",
"contactno": "+8801710762740",
"email": "student0@gmail.com"
}
}
POST http://localhost/student-management-system/student.php
{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"action":"request-break",
"data":{
"date":"2021-05-09",
"time":"9:53",
"reason":"I am ill"
}
}
{
"code": "2047",
"message": "Student request is placed"
}
POST http://localhost/student-management-system/student.php
{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"action":"delete-break",
"data":{
"date":"2021-05-09",
"time":"9:53"
}
}
{
"code": "2097",
"message": "Student request is deleted"
}
POST http://localhost/student-management-system/student.php
{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"action":"student-checkbreaklist",
"data":{
}
}
{
"code": "2043",
"message": "Student check list is retrieved",
"data": {
"checks": [
{
"workdate": "2021-07-28",
"checkin": "10:30:00",
"checkout": "00:00:20",
"presenttype": "PR"
},
{
"workdate": "2021-07-18",
"checkin": "10:30:00",
"checkout": "00:00:20",
"presenttype": "AB"
}
],
"breaks": [
{
"workdate": "2021-08-18",
"timetext": "12:21:00",
"reason": "I will be at the book fair",
"status": "accept"
},
{
"workdate": "2021-08-13",
"timetext": "12:21:00",
"reason": "I have to go the contest",
"status": "pending"
},
{
"workdate": "2021-08-06",
"timetext": "12:21:00",
"reason": "I have to go the vet",
"status": "reject"
}
]
}
}
POST http://localhost/student-management-system/student.php
{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"action":"student-breaklist",
"data":{
}
}
{
"code": "2043",
"message": "Student break list is retrieved",
"data": {
"breaks": [
{
"workdate": "2021-08-18",
"timetext": "12:21:00",
"reason": "I will be at the book fair",
"status": "accept"
},
{
"workdate": "2021-08-13",
"timetext": "12:21:00",
"reason": "I have to go the contest",
"status": "pending"
},
{
"workdate": "2021-08-06",
"timetext": "12:21:00",
"reason": "I have to go the vet",
"status": "accept"
}
]
}
}
POST http://localhost/student-management-system/validation.php
{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"usertype":"admin"
}
{
"code": "2300",
"message": "Token is valid"
}
POST http://localhost/student-management-system/common.php
{
"action":"change-password",
"data":{
"token":"f67ebc83e69a26bda3a960bb090a691168e9af738ad5e0769bef5afb302387ee",
"old-password":"avunix9143",
"new-password":"avunix9143new"
}
}
{
"code": "2099",
"message": "Password is changed"
}
- You can't use it for commercial usage
- You can use it just for eductional usage