Skip to content
pkhegadeedu edited this page Jun 5, 2018 · 1 revision

Employee Module

  1. 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": "ygawade.edu@gmail.com", "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 }

  1. Delete Employee Method: DELETE URL: http://18.221.99.177:8080/employees/{employeeid} Example: http://18.221.99.177:8080/employees/2

  2. Get Employee List Method: GET URL: http://18.221.99.177:8080/employees

  3. 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

  4. 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": "ygawade.edu@gmail.com", "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

  1. 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": "abc@gmail.com" }, "mothersDetails": { "name": "hvh", "occupation": "sdkchb", "qualification": "vhv", "phoneNumber": "8793448868", "emailId": "xyz@gmail.com" }, "guardianDetails": { "name": "dcbhk", "occupation": "khdc", "qualification": "adch", "phoneNumber": "8793448868", "emailId": "pqr@gmail.com" } }

  1. 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

Clone this wiki locally