API's - PaperLessEdu/schoolerp-web-ui GitHub Wiki
Employee Module
- Save Employee Data Method: POST URL: http://18.221.99.177:8080/employees Request body:
{ "firstName": "Yuvraj", "middleName": "", "lastName": "Gawade", "nationality": "Indian", "gender": "Female", "dob": "28/07/1991", "bloodGroup": "A +ve", "maritalStatus": "Married", "qualification": "Graduation", "occupation": "BE", "jobType": "Full Time", "employeeType": "Teaching Staff", "dateOfJoining": "01/04/2017", "aadharCardNumber": "1111-2222-3333", "emailId": "[email protected]", "phoneNumber": "7620676545", "alternatePhoneNumber": "1234567890", "permanentAddress": "Ut pharetra luctus est quis sodales. Duis nisi tortor, bibendum eget tincidunt, aliquam ac elit. Mauris nec euismod odio.", "correspondenceAddress": "Flat No 42, Silver Estate B-3, Phase 1, Bibwewadi", "city": "Pune", "state": "Maharashtra", "postalCode": 411037, "roleId":1 }
-
Delete Employee Method: DELETE URL: http://18.221.99.177:8080/employees/{employeeid} Example: http://18.221.99.177:8080/employees/2
-
Get Employee List Method: GET URL: http://18.221.99.177:8080/employees
-
Get employee details by id Method: GET URL: http://18.221.99.177:8080/employees/{employeeid} Example: http://18.221.99.177:8080/employees/2
-
Update employee Method: PUT URL: http://18.221.99.177:8080/employees/{employeeid} Example: http://18.221.99.177:8080/employees/2
Request body: { "firstName": "Yuvraj", "middleName": "", "lastName": "Gawade", "nationality": "Indian", "gender": "Female", "dob": "28/07/1991", "bloodGroup": "A +ve", "maritalStatus": "Married", "qualification": "Graduation", "occupation": "BE", "jobType": "Full Time", "employeeType": "Teaching Staff", "dateOfJoining": "01/04/2017", "aadharCardNumber": "1111-2222-3333", "emailId": "[email protected]", "phoneNumber": "7620676545", "alternatePhoneNumber": "1234567890", "permanentAddress": "Ut pharetra luctus est quis sodales. Duis nisi tortor, bibendum eget tincidunt, aliquam ac elit. Mauris nec euismod odio.", "correspondenceAddress": "Flat No 42, Silver Estate B-3, Phase 1, Bibwewadi", "city": "Pune", "state": "Maharashtra", "postalCode": 411037, "roleId":1 }
Student Module
- Add Student Method: POST URL: http://18.221.99.177:8080/students Example: http://18.221.99.177:8080/students
Request body: { "academicYear": "1", "firstName": "Ekta", "middleName": "asdsd", "lastName": "qweqwe", "dob": "2018-05-23T18:30:00.000Z", "gender": "Male", "bloodGroup": "A -ve", "category": "Open", "caste": "Hindu", "religion": "Maratha", "standard": 1, "division": 1, "nationality": "Indian", "permanentAddress": "Umbraj", "correspondenceAddress": "Pune", "country": "India", "state": "Maharashtra", "city": "Pune", "postalCode": "411033", "fathersDetails": { "name": "jdhbc", "occupation": "hvh", "qualification": "Engg", "phoneNumber": "8793448868", "emailId": "[email protected]" }, "mothersDetails": { "name": "hvh", "occupation": "sdkchb", "qualification": "vhv", "phoneNumber": "8793448868", "emailId": "[email protected]" }, "guardianDetails": { "name": "dcbhk", "occupation": "khdc", "qualification": "adch", "phoneNumber": "8793448868", "emailId": "[email protected]" } }
- Get Students by Standard id and Division Id
Method: GET URL: http://18.221.99.177:8080/students Example: http://18.221.99.177:8080/students?standardId=1&divisionId=1