From 1fa8af673ba78ef85e150d568f9221e7c57bd194 Mon Sep 17 00:00:00 2001 From: jp-karthik Date: Sun, 29 May 2022 11:23:51 +0530 Subject: [PATCH] first commit --- CDC_Backend/README.md | 925 +++++++++++++++++++----------------------- 1 file changed, 419 insertions(+), 506 deletions(-) diff --git a/CDC_Backend/README.md b/CDC_Backend/README.md index 30c06d8..e0b578f 100644 --- a/CDC_Backend/README.md +++ b/CDC_Backend/README.md @@ -1,22 +1,22 @@ # API References 1. [**Common APIs**](#common-apis) - 1. [**api/login/**](#apilogin) + 1. [**api/login/**](#apilogin) 2. [**Student APIs**](#student-portal-apis) - 1. [**api/student/profile/**](#apistudentprofile) - 2. [**api/student/getDashboard/**](#apistudentgetdashboard) - 3. [**api/student/addResume/**](#apistudentaddresume) - 4. [**api/student/deleteResume/**](#apistudentdeleteresume) - 5. [**api/student/submitApplication/**](#apistudentsubmitapplication) + 1. [**api/student/profile/**](#apistudentprofile) + 2. [**api/student/getDashboard/**](#apistudentgetdashboard) + 3. [**api/student/addResume/**](#apistudentaddresume) + 4. [**api/student/deleteResume/**](#apistudentdeleteresume) + 5. [**api/student/submitApplication/**](#apistudentsubmitapplication) 3. [**Admin APIs**](#admin-portal-apis) - 1. [**api/admin/markStatus/**](#apiadminmarkstatus) - 2. [**api/admin/getDashboard/**](#apiadmingetdashboard) - 3. [**api/admin/updateDeadline/**](#apiadminupdatedeadline) - 4. [**api/admin/updateOfferAccepted**](#apiadminupdateofferaccepted) - 5. [**api/admin/updateEmailVerified**](#apiadminupdateemailverified) - 6. [**api/admin/updateAdditionalInfo**](#apiadminupdateadditionalinfo) + 1. [**api/admin/markStatus/**](#apiadminmarkstatus) + 2. [**api/admin/getDashboard/**](#apiadmingetdashboard) + 3. [**api/admin/updateDeadline/**](#apiadminupdatedeadline) + 4. [**api/admin/updateOfferAccepted**](#apiadminupdateofferaccepted) + 5. [**api/admin/updateEmailVerified**](#apiadminupdateemailverified) + 6. [**api/admin/updateAdditionalInfo**](#apiadminupdateadditionalinfo) 4. [**Company APIs**](#company-portal-apis) - 1. [**api/company/addPlacement/**](#apicompanyaddplacement) + 1. [**api/company/addPlacement/**](#apicompanyaddplacement) 5. [**Common Errors**](#common-errors) --- @@ -47,17 +47,15 @@ Response is a Json with these fields { "action": "Login", "message": "Verified", - "user_type": [ - "student" - ] + "user_type": ["student"] } ``` - action: Tells us about the message creator
- message: Tells us what happened with our Request. - user_type: Tells us about the role the user possess. Can have these values - - student - - Admin + - student + - Admin ### Status Codes @@ -95,30 +93,30 @@ Response is a Json with these fields ```json { - "action": "Student Profile", - "message": "Details Found", - "details": { - "id": "190010036", - "resume_list": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/resume/190010036%2F8KIOT3PW1JIS718_CSE-V-SEM.pdf", - "name": "8KIOT3PW1JIS718_CSE-V-SEM.pdf" - } - ], - "offers": [ - { - "designation": "Software Developer", - "company_name": "Make My Trip", - "application_id": "LLW4STE76GEJYOR" - } - ], - "roll_no": 190010036, - "name": "Gowtham Sai", - "batch": "2019", - "branch": "CSE", - "phone_number": 9390291911, - "cpi": "9.15" - } + "action": "Student Profile", + "message": "Details Found", + "details": { + "id": "190010036", + "resume_list": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/resume/190010036%2F8KIOT3PW1JIS718_CSE-V-SEM.pdf", + "name": "8KIOT3PW1JIS718_CSE-V-SEM.pdf" + } + ], + "offers": [ + { + "designation": "Software Developer", + "company_name": "Make My Trip", + "application_id": "LLW4STE76GEJYOR" + } + ], + "roll_no": 190010036, + "name": "Gowtham Sai", + "batch": "2019", + "branch": "CSE", + "phone_number": 9390291911, + "cpi": "9.15" + } } ``` @@ -130,10 +128,10 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | -| 200 OK | `Details Found` | -| 400 BAD_REQUEST | `Something Went Wrong` | +| Status Codes | Possible Messages | +| --------------- | ---------------------- | +| 200 OK | `Details Found` | +| 400 BAD_REQUEST | `Something Went Wrong` | You may see some different errors which can be seen [here](#common-errors) @@ -164,199 +162,181 @@ Response is a Json with these fields ```json { - "action": "Get Dashboard - Student", - "message": "Data Found", - "placements": [ + "action": "Get Dashboard - Student", + "message": "Data Found", + "placements": [ + { + "id": "Q54IRZZMC3RP8F6", + "company_details_pdf_links": [ { - "id": "Q54IRZZMC3RP8F6", - "company_details_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FI5U4RDTV0OP0EM0_2019+Student+Details+-+Total%28State+Sort%29+-+Copy.pdf", - "name": "I5U4RDTV0OP0EM0_2019 Student Details - Total(State Sort) - Copy.pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FW04JWWNNMIBX0JX_2019+Student+Details+-+Total%28State+Sort%29.pdf", - "name": "W04JWWNNMIBX0JX_2019 Student Details - Total(State Sort).pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FT1BXP98WBT9BHOR_AP0313017732021LL-Driving+Licence+-+Copy.pdf", - "name": "T1BXP98WBT9BHOR_AP0313017732021LL-Driving Licence - Copy.pdf" - } - ], - "description_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FC78TE2Z67BPZ41O_CSE-V-SEM.pdf", - "name": "C78TE2Z67BPZ41O_CSE-V-SEM.pdf" - } - ], - "compensation_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2F8D5OFQ46H43DD3S_module5And6Attendance.pdf", - "name": "8D5OFQ46H43DD3S_module5And6Attendance.pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FG8OU2PE919PFKSR_Print+Application11.pdf", - "name": "G8OU2PE919PFKSR_Print Application11.pdf" - } - ], - "selection_procedure_details_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FDZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_", - "name": "DZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FN490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3", - "name": "N490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3" - } - ], - "company_name": "Make My Trip", - "address": "MakeMyTrip India Pvt. Ltd.5, Awagarh House, MG Road(next to Bachoomal collections)Agra (UP), - 282002India", - "company_type": "Private Sector", - "nature_of_business": "Technology", - "website": "www.makemytrip.com", - "company_details": "This s a very nice company", - "is_company_details_pdf": true, - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "pin_code": 530013, - "city_type": "Domestic", - "designation": "Software Developer", - "description": "very nice job", - "is_description_pdf": true, - "compensation_CTC": 1200000, - "compensation_gross": 1100000, - "compensation_take_home": 1000000, - "compensation_bonus": 10000, - "compensation_details": "very good compensation", - "is_compensation_details_pdf": true, - "bond_details": "nil", - "selection_procedure_rounds": [ - "Resume Shortlisting", - "Technical Interview", - "HR Interview" - ], - "selection_procedure_details": "All rounds are complusory", - "is_selection_procedure_details_pdf": true, - "tier": "4", - "tentative_date_of_joining": "2022-01-15", - "allowed_batch": [ - "2018", - "2019" - ], - "allowed_branch": [ - "CSE", - "EE" - ], - "tentative_no_of_offers": 5, - "other_requirements": "above 8 cpi", - "additional_info": [ - "School", - "Home Town" - ], - "deadline_date": "2021-12-04", - "created_at": "2021-12-02T20:12:21+05:30" - } - ], - "placementApplication": [ + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FI5U4RDTV0OP0EM0_2019+Student+Details+-+Total%28State+Sort%29+-+Copy.pdf", + "name": "I5U4RDTV0OP0EM0_2019 Student Details - Total(State Sort) - Copy.pdf" + }, { - "id": "LLW4STE76GEJYOR", - "placement": { - "id": "Q54IRZZMC3RP8F6", - "company_details_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FI5U4RDTV0OP0EM0_2019+Student+Details+-+Total%28State+Sort%29+-+Copy.pdf", - "name": "I5U4RDTV0OP0EM0_2019 Student Details - Total(State Sort) - Copy.pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FW04JWWNNMIBX0JX_2019+Student+Details+-+Total%28State+Sort%29.pdf", - "name": "W04JWWNNMIBX0JX_2019 Student Details - Total(State Sort).pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FT1BXP98WBT9BHOR_AP0313017732021LL-Driving+Licence+-+Copy.pdf", - "name": "T1BXP98WBT9BHOR_AP0313017732021LL-Driving Licence - Copy.pdf" - } - ], - "description_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FC78TE2Z67BPZ41O_CSE-V-SEM.pdf", - "name": "C78TE2Z67BPZ41O_CSE-V-SEM.pdf" - } - ], - "compensation_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2F8D5OFQ46H43DD3S_module5And6Attendance.pdf", - "name": "8D5OFQ46H43DD3S_module5And6Attendance.pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FG8OU2PE919PFKSR_Print+Application11.pdf", - "name": "G8OU2PE919PFKSR_Print Application11.pdf" - } - ], - "selection_procedure_details_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FDZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_", - "name": "DZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FN490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3", - "name": "N490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3" - } - ], - "company_name": "Make My Trip", - "address": "MakeMyTrip India Pvt. Ltd.5, Awagarh House, MG Road(next to Bachoomal collections)Agra (UP), - 282002India", - "company_type": "Private Sector", - "nature_of_business": "Technology", - "website": "www.makemytrip.com", - "company_details": "This s a very nice company", - "is_company_details_pdf": true, - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "pin_code": 530013, - "city_type": "Domestic", - "designation": "Software Developer", - "description": "very nice job", - "is_description_pdf": true, - "compensation_CTC": 1200000, - "compensation_gross": 1100000, - "compensation_take_home": 1000000, - "compensation_bonus": 10000, - "compensation_details": "very good compensation", - "is_compensation_details_pdf": true, - "bond_details": "nil", - "selection_procedure_rounds": [ - "Resume Shortlisting", - "Technical Interview", - "HR Interview" - ], - "selection_procedure_details": "All rounds are complusory", - "is_selection_procedure_details_pdf": true, - "tier": "4", - "tentative_date_of_joining": "2022-01-15", - "allowed_batch": [ - "2018", - "2019" - ], - "allowed_branch": [ - "CSE", - "EE" - ], - "tentative_no_of_offers": 5, - "other_requirements": "above 8 cpi", - "additional_info": [ - "School", - "Home Town" - ], - "deadline_date": "2021-12-04", - "created_at": "2021-12-02T20:12:21+05:30" - }, - "resume_link": "https://storage.googleapis.com/cdc-backend-attachments/resume/LLW4STE76GEJYOR%2F8KIOT3PW1JIS718_CSE-V-SEM.pdf", - "additional_info": "{\"School\": \"Narayana English Medium High School\", \"Home Town\": \"Vizag\"}", - "selected": null, - "applied_at": "2021-12-02T21:58:18.032466+05:30" + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FW04JWWNNMIBX0JX_2019+Student+Details+-+Total%28State+Sort%29.pdf", + "name": "W04JWWNNMIBX0JX_2019 Student Details - Total(State Sort).pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FT1BXP98WBT9BHOR_AP0313017732021LL-Driving+Licence+-+Copy.pdf", + "name": "T1BXP98WBT9BHOR_AP0313017732021LL-Driving Licence - Copy.pdf" } - ] + ], + "description_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FC78TE2Z67BPZ41O_CSE-V-SEM.pdf", + "name": "C78TE2Z67BPZ41O_CSE-V-SEM.pdf" + } + ], + "compensation_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2F8D5OFQ46H43DD3S_module5And6Attendance.pdf", + "name": "8D5OFQ46H43DD3S_module5And6Attendance.pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FG8OU2PE919PFKSR_Print+Application11.pdf", + "name": "G8OU2PE919PFKSR_Print Application11.pdf" + } + ], + "selection_procedure_details_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FDZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_", + "name": "DZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FN490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3", + "name": "N490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3" + } + ], + "company_name": "Make My Trip", + "address": "MakeMyTrip India Pvt. Ltd.5, Awagarh House, MG Road(next to Bachoomal collections)Agra (UP), - 282002India", + "company_type": "Private Sector", + "nature_of_business": "Technology", + "website": "www.makemytrip.com", + "company_details": "This s a very nice company", + "is_company_details_pdf": true, + "city": "Mumbai", + "state": "Maharashtra", + "country": "India", + "pin_code": 530013, + "city_type": "Domestic", + "designation": "Software Developer", + "description": "very nice job", + "is_description_pdf": true, + "compensation_CTC": 1200000, + "compensation_gross": 1100000, + "compensation_take_home": 1000000, + "compensation_bonus": 10000, + "compensation_details": "very good compensation", + "is_compensation_details_pdf": true, + "bond_details": "nil", + "selection_procedure_rounds": [ + "Resume Shortlisting", + "Technical Interview", + "HR Interview" + ], + "selection_procedure_details": "All rounds are complusory", + "is_selection_procedure_details_pdf": true, + "tier": "4", + "tentative_date_of_joining": "2022-01-15", + "allowed_batch": ["2018", "2019"], + "allowed_branch": ["CSE", "EE"], + "tentative_no_of_offers": 5, + "other_requirements": "above 8 cpi", + "additional_info": ["School", "Home Town"], + "deadline_date": "2021-12-04", + "created_at": "2021-12-02T20:12:21+05:30" + } + ], + "placementApplication": [ + { + "id": "LLW4STE76GEJYOR", + "placement": { + "id": "Q54IRZZMC3RP8F6", + "company_details_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FI5U4RDTV0OP0EM0_2019+Student+Details+-+Total%28State+Sort%29+-+Copy.pdf", + "name": "I5U4RDTV0OP0EM0_2019 Student Details - Total(State Sort) - Copy.pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FW04JWWNNMIBX0JX_2019+Student+Details+-+Total%28State+Sort%29.pdf", + "name": "W04JWWNNMIBX0JX_2019 Student Details - Total(State Sort).pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FT1BXP98WBT9BHOR_AP0313017732021LL-Driving+Licence+-+Copy.pdf", + "name": "T1BXP98WBT9BHOR_AP0313017732021LL-Driving Licence - Copy.pdf" + } + ], + "description_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FC78TE2Z67BPZ41O_CSE-V-SEM.pdf", + "name": "C78TE2Z67BPZ41O_CSE-V-SEM.pdf" + } + ], + "compensation_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2F8D5OFQ46H43DD3S_module5And6Attendance.pdf", + "name": "8D5OFQ46H43DD3S_module5And6Attendance.pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FG8OU2PE919PFKSR_Print+Application11.pdf", + "name": "G8OU2PE919PFKSR_Print Application11.pdf" + } + ], + "selection_procedure_details_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FDZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_", + "name": "DZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FN490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3", + "name": "N490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3" + } + ], + "company_name": "Make My Trip", + "address": "MakeMyTrip India Pvt. Ltd.5, Awagarh House, MG Road(next to Bachoomal collections)Agra (UP), - 282002India", + "company_type": "Private Sector", + "nature_of_business": "Technology", + "website": "www.makemytrip.com", + "company_details": "This s a very nice company", + "is_company_details_pdf": true, + "city": "Mumbai", + "state": "Maharashtra", + "country": "India", + "pin_code": 530013, + "city_type": "Domestic", + "designation": "Software Developer", + "description": "very nice job", + "is_description_pdf": true, + "compensation_CTC": 1200000, + "compensation_gross": 1100000, + "compensation_take_home": 1000000, + "compensation_bonus": 10000, + "compensation_details": "very good compensation", + "is_compensation_details_pdf": true, + "bond_details": "nil", + "selection_procedure_rounds": [ + "Resume Shortlisting", + "Technical Interview", + "HR Interview" + ], + "selection_procedure_details": "All rounds are complusory", + "is_selection_procedure_details_pdf": true, + "tier": "4", + "tentative_date_of_joining": "2022-01-15", + "allowed_batch": ["2018", "2019"], + "allowed_branch": ["CSE", "EE"], + "tentative_no_of_offers": 5, + "other_requirements": "above 8 cpi", + "additional_info": ["School", "Home Town"], + "deadline_date": "2021-12-04", + "created_at": "2021-12-02T20:12:21+05:30" + }, + "resume_link": "https://storage.googleapis.com/cdc-backend-attachments/resume/LLW4STE76GEJYOR%2F8KIOT3PW1JIS718_CSE-V-SEM.pdf", + "additional_info": "{\"School\": \"Narayana English Medium High School\", \"Home Town\": \"Vizag\"}", + "selected": null, + "applied_at": "2021-12-02T21:58:18.032466+05:30" + } + ] } ``` @@ -369,10 +349,10 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | +| Status Codes | Possible Messages | +| --------------- | ---------------------- | | 200 OK | `Data Found` | -| 404 Not Found | `Student Not Found` | +| 404 Not Found | `Student Not Found` | | 400 BAD_REQUEST | `Something Went Wrong` | You can see some common errors [here](#common-errors) @@ -490,13 +470,13 @@ Request_Body: ```json { - "opening_type": "Placement", - "opening_id": "Q54IRZZMC3RP8F6", - "resume_file_name": "8KIOT3PW1JIS718_CSE-V-SEM.pdf", - "additional_info": { - "School": "Narayana English Medium High School", - "Home Town": "Vizag" - } + "opening_type": "Placement", + "opening_id": "Q54IRZZMC3RP8F6", + "resume_file_name": "8KIOT3PW1JIS718_CSE-V-SEM.pdf", + "additional_info": { + "School": "Narayana English Medium High School", + "Home Town": "Vizag" + } } ``` @@ -530,7 +510,7 @@ The possible responses for this api request are as follows | ------------- | ---------------------------------- | | 200 OK | `Application Submitted` | | 403 FORBIDDEN | `Application is already Submitted` | -| 403 FORBIDDEN | `Placement Not Approved` | +| 403 FORBIDDEN | `Placement Not Approved` | | 404 NOT FOUND | `RESUME_FILE_NAME Not Found` | You can see some common errors [here](#common-errors) @@ -552,14 +532,14 @@ Request_Body: { "opening_id": "Q54IRZZMC3RP8F6", "student_list": [ - { - "student_id":"190010036", - "student_selected":"true" - }, - { - "student_id":"190050022", - "student_selected":"false" - } + { + "student_id": "190010036", + "student_selected": "true" + }, + { + "student_id": "190050022", + "student_selected": "false" + } ] } ``` @@ -585,10 +565,10 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | -| 200 OK | `Marked Status` | -| 400 BAD_REQUEST | `Something Went Wrong` | +| Status Codes | Possible Messages | +| --------------- | ---------------------- | +| 200 OK | `Marked Status` | +| 400 BAD_REQUEST | `Something Went Wrong` | You may see some different errors which can be seen [here](#common-errors) @@ -617,106 +597,97 @@ Response is a Json with these fields ```json { - "action": "Get Dashboard - Admin", - "message": "Data Found", - "ongoing": [ + "action": "Get Dashboard - Admin", + "message": "Data Found", + "ongoing": [ + { + "id": "Q54IRZZMC3RP8F6", + "company_details_pdf_links": [ { - "id": "Q54IRZZMC3RP8F6", - "company_details_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FI5U4RDTV0OP0EM0_2019+Student+Details+-+Total%28State+Sort%29+-+Copy.pdf", - "name": "I5U4RDTV0OP0EM0_2019 Student Details - Total(State Sort) - Copy.pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FW04JWWNNMIBX0JX_2019+Student+Details+-+Total%28State+Sort%29.pdf", - "name": "W04JWWNNMIBX0JX_2019 Student Details - Total(State Sort).pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FT1BXP98WBT9BHOR_AP0313017732021LL-Driving+Licence+-+Copy.pdf", - "name": "T1BXP98WBT9BHOR_AP0313017732021LL-Driving Licence - Copy.pdf" - } - ], - "description_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FC78TE2Z67BPZ41O_CSE-V-SEM.pdf", - "name": "C78TE2Z67BPZ41O_CSE-V-SEM.pdf" - } - ], - "compensation_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2F8D5OFQ46H43DD3S_module5And6Attendance.pdf", - "name": "8D5OFQ46H43DD3S_module5And6Attendance.pdf" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FG8OU2PE919PFKSR_Print+Application11.pdf", - "name": "G8OU2PE919PFKSR_Print Application11.pdf" - } - ], - "selection_procedure_details_pdf_links": [ - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FDZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_", - "name": "DZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_" - }, - { - "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FN490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3", - "name": "N490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3" - } - ], - "company_name": "Make My Trip", - "address": "MakeMyTrip India Pvt. Ltd.5, Awagarh House, MG Road(next to Bachoomal collections)Agra (UP), - 282002India", - "company_type": "Private Sector", - "nature_of_business": "Technology", - "website": "www.makemytrip.com", - "company_details": "This s a very nice company", - "is_company_details_pdf": true, - "contact_person_name": "Gowtham", - "phone_number": 9390291911, - "email": "saisurya3127@gmail.com", - "city": "Mumbai", - "state": "Maharashtra", - "country": "India", - "pin_code": 530013, - "city_type": "Domestic", - "designation": "Software Developer", - "description": "very nice job", - "is_description_pdf": true, - "compensation_CTC": 1200000, - "compensation_gross": 1100000, - "compensation_take_home": 1000000, - "compensation_bonus": 10000, - "compensation_details": "very good compensation", - "is_compensation_details_pdf": true, - "bond_details": "nil", - "selection_procedure_rounds": [ - "Resume Shortlisting", - "Technical Interview", - "HR Interview" - ], - "selection_procedure_details": "All rounds are complusory", - "is_selection_procedure_details_pdf": true, - "tier": "4", - "tentative_date_of_joining": "2022-01-15", - "allowed_batch": [ - "2018", - "2019" - ], - "allowed_branch": [ - "CSE", - "EE" - ], - "tentative_no_of_offers": 5, - "other_requirements": "above 8 cpi", - "additional_info": [ - "School", - "Home Town" - ], - "email_verified": false, - "offer_accepted": null, - "deadline_date": "2021-12-04", - "created_at": "2021-12-02T20:12:21+05:30" + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FI5U4RDTV0OP0EM0_2019+Student+Details+-+Total%28State+Sort%29+-+Copy.pdf", + "name": "I5U4RDTV0OP0EM0_2019 Student Details - Total(State Sort) - Copy.pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FW04JWWNNMIBX0JX_2019+Student+Details+-+Total%28State+Sort%29.pdf", + "name": "W04JWWNNMIBX0JX_2019 Student Details - Total(State Sort).pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FT1BXP98WBT9BHOR_AP0313017732021LL-Driving+Licence+-+Copy.pdf", + "name": "T1BXP98WBT9BHOR_AP0313017732021LL-Driving Licence - Copy.pdf" } - ], - "previous": [] + ], + "description_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FC78TE2Z67BPZ41O_CSE-V-SEM.pdf", + "name": "C78TE2Z67BPZ41O_CSE-V-SEM.pdf" + } + ], + "compensation_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2F8D5OFQ46H43DD3S_module5And6Attendance.pdf", + "name": "8D5OFQ46H43DD3S_module5And6Attendance.pdf" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FG8OU2PE919PFKSR_Print+Application11.pdf", + "name": "G8OU2PE919PFKSR_Print Application11.pdf" + } + ], + "selection_procedure_details_pdf_links": [ + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FDZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_", + "name": "DZTQQ6YBGBQ47PY_screencapture-onlinesbi-sbi-sbicollect-fsssuccessresponseredirect-htm-2021-07-19-18_" + }, + { + "link": "https://storage.googleapis.com/cdc-backend-attachments/company_attachments/Q54IRZZMC3RP8F6%2FN490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3", + "name": "N490PUXJEEN4JZ9_screencapture-onlinesbi-sbi-sbicollect-payment-suvidhapayment-htm-2021-07-19-23_12_3" + } + ], + "company_name": "Make My Trip", + "address": "MakeMyTrip India Pvt. Ltd.5, Awagarh House, MG Road(next to Bachoomal collections)Agra (UP), - 282002India", + "company_type": "Private Sector", + "nature_of_business": "Technology", + "website": "www.makemytrip.com", + "company_details": "This s a very nice company", + "is_company_details_pdf": true, + "contact_person_name": "Gowtham", + "phone_number": 9390291911, + "email": "saisurya3127@gmail.com", + "city": "Mumbai", + "state": "Maharashtra", + "country": "India", + "pin_code": 530013, + "city_type": "Domestic", + "designation": "Software Developer", + "description": "very nice job", + "is_description_pdf": true, + "compensation_CTC": 1200000, + "compensation_gross": 1100000, + "compensation_take_home": 1000000, + "compensation_bonus": 10000, + "compensation_details": "very good compensation", + "is_compensation_details_pdf": true, + "bond_details": "nil", + "selection_procedure_rounds": [ + "Resume Shortlisting", + "Technical Interview", + "HR Interview" + ], + "selection_procedure_details": "All rounds are complusory", + "is_selection_procedure_details_pdf": true, + "tier": "4", + "tentative_date_of_joining": "2022-01-15", + "allowed_batch": ["2018", "2019"], + "allowed_branch": ["CSE", "EE"], + "tentative_no_of_offers": 5, + "other_requirements": "above 8 cpi", + "additional_info": ["School", "Home Town"], + "email_verified": false, + "offer_accepted": null, + "deadline_date": "2021-12-04", + "created_at": "2021-12-02T20:12:21+05:30" + } + ], + "previous": [] } ``` @@ -729,8 +700,8 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | +| Status Codes | Possible Messages | +| --------------- | ---------------------- | | 200 OK | `Data Found` | | 400 BAD_REQUEST | `Something Went Wrong` | @@ -749,8 +720,8 @@ Request_Body: ```json { - "opening_id": "Q54IRZZMC3RP8F6", - "deadline_datetime": "2021-12-06 16:28:18 +0530" + "opening_id": "Q54IRZZMC3RP8F6", + "deadline_datetime": "2021-12-06 16:28:18 +0530" } ``` @@ -763,8 +734,8 @@ Response is a Json with these fields ```json { - "action": "Update Deadline", - "message": "Deadline Updated" + "action": "Update Deadline", + "message": "Deadline Updated" } ``` @@ -775,10 +746,10 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | -| 200 OK | `Deadline Updated` | -| 400 BAD_REQUEST | `Something Went Wrong` | +| Status Codes | Possible Messages | +| --------------- | ---------------------- | +| 200 OK | `Deadline Updated` | +| 400 BAD_REQUEST | `Something Went Wrong` | You may see some different errors which can be seen [here](#common-errors) @@ -795,8 +766,8 @@ Request_Body: ```json { - "opening_id": "Q54IRZZMC3RP8F6", - "offer_accepted": "true" + "opening_id": "Q54IRZZMC3RP8F6", + "offer_accepted": "true" } ``` @@ -809,8 +780,8 @@ Response is a Json with these fields ```json { - "action": "Update Offer Accepted", - "message": "Offer Accepted Updated" + "action": "Update Offer Accepted", + "message": "Offer Accepted Updated" } ``` @@ -821,10 +792,10 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | -| 200 OK | `Update Offer Accepted` | -| 400 BAD_REQUEST | `Something Went Wrong` | +| Status Codes | Possible Messages | +| --------------- | ----------------------- | +| 200 OK | `Update Offer Accepted` | +| 400 BAD_REQUEST | `Something Went Wrong` | You may see some different errors which can be seen [here](#common-errors) @@ -841,8 +812,8 @@ Request_Body: ```json { - "opening_id": "Q54IRZZMC3RP8F6", - "email_verified": "false" + "opening_id": "Q54IRZZMC3RP8F6", + "email_verified": "false" } ``` @@ -855,8 +826,8 @@ Response is a Json with these fields ```json { - "action": "Update Email Verified", - "message": "Email Verified Updated" + "action": "Update Email Verified", + "message": "Email Verified Updated" } ``` @@ -869,8 +840,8 @@ The possible responses for this api request are as follows | Status Codes | Possible Messages | | --------------- | ------------------------ | -| 200 OK | `Email Verified Updated` | -| 400 BAD_REQUEST | `Something Went Wrong` | +| 200 OK | `Email Verified Updated` | +| 400 BAD_REQUEST | `Something Went Wrong` | You may see some different errors which can be seen [here](#common-errors) @@ -887,12 +858,8 @@ Request_Body: ```json { - "opening_id": "Q54IRZZMC3RP8F6", - "additional_info": [ - "School", - "Place of Living", - "Research Interests" - ] + "opening_id": "Q54IRZZMC3RP8F6", + "additional_info": ["School", "Place of Living", "Research Interests"] } ``` @@ -905,8 +872,8 @@ Response is a Json with these fields ```json { - "action": "Update Additional Info", - "message": "Additional Info Updated" + "action": "Update Additional Info", + "message": "Additional Info Updated" } ``` @@ -917,15 +884,33 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| --------------- | ------------------------ | -| 200 OK | `Additional Info Updated` | -| 400 BAD_REQUEST | `Something Went Wrong` | +| Status Codes | Possible Messages | +| --------------- | ------------------------- | +| 200 OK | `Additional Info Updated` | +| 400 BAD_REQUEST | `Something Went Wrong` | You may see some different errors which can be seen [here](#common-errors) --- + + +## `api/admin/getApplications` + +This api is used to + +### How to Use? + +Send a `POST` request to `api/admin/updateAdditionalInfo`
+Request_Body: + +```json +{ + "opening_id": "Q54IRZZMC3RP8F6", + "additional_info": ["School", "Place of Living", "Research Interests"] +} +``` + # Company Portal APIs ## `api/company/addPlacement/` @@ -940,113 +925,45 @@ Request_Body: ```json { - "company_name": [ - "Make My Trip" - ], + "company_name": ["Make My Trip"], "address": [ "MakeMyTrip India Pvt. Ltd.\n5, Awagarh House, MG Road\n(next to Bachoomal collections)\nAgra (UP), - 282002\nIndia" ], - "company_type": [ - "Private Sector" - ], - "nature_of_business": [ - "Technology" - ], - "website": [ - "www.makemytrip.com" - ], - "company_details": [ - "This s a very nice company" - ], - "is_company_details_pdf": [ - "true" - ], - "contact_person_name": [ - "Gowtham" - ], - "phone_number": [ - "9390291911" - ], - "email": [ - "saisurya3127@gmail.com" - ], - "city": [ - "Mumbai" - ], - "state": [ - "Maharashtra" - ], - "country": [ - "India" - ], - "pincode": [ - "530013" - ], - "designation": [ - "Software Developer" - ], - "description": [ - "very nice job" - ], - "is_description_pdf": [ - "true" - ], - "compensation_ctc": [ - "1200000" - ], - "compensation_gross": [ - "1100000" - ], - "compensation_take_home": [ - "1000000" - ], - "compensation_bonus": [ - "10000" - ], - "compensation_details": [ - "very good compensation" - ], - "is_compensation_details_pdf": [ - "true" - ], - "bond_details": [ - "nil" - ], + "company_type": ["Private Sector"], + "nature_of_business": ["Technology"], + "website": ["www.makemytrip.com"], + "company_details": ["This s a very nice company"], + "is_company_details_pdf": ["true"], + "contact_person_name": ["Gowtham"], + "phone_number": ["9390291911"], + "email": ["saisurya3127@gmail.com"], + "city": ["Mumbai"], + "state": ["Maharashtra"], + "country": ["India"], + "pincode": ["530013"], + "designation": ["Software Developer"], + "description": ["very nice job"], + "is_description_pdf": ["true"], + "compensation_ctc": ["1200000"], + "compensation_gross": ["1100000"], + "compensation_take_home": ["1000000"], + "compensation_bonus": ["10000"], + "compensation_details": ["very good compensation"], + "is_compensation_details_pdf": ["true"], + "bond_details": ["nil"], "selection_procedure_rounds": [ "['Resume Shortlisting', 'Technical Interview', 'HR Interview']" ], - "selection_procedure_details": [ - "All rounds are complusory" - ], - "is_selection_procedure_details_pdf": [ - "true" - ], - "tentative_date_of_joining": [ - "15-01-2022" - ], - "allowed_branch": [ - "['CSE', 'EE']" - ], - "tentative_no_of_offers": [ - "5" - ], - "other_requirements": [ - "above 8 cpi" - ], - "company_details_pdf": [ - "__FILE_OBJECT__", - "__FILE_OBJECT__" - ], - "description_pdf": [ - "__FILE_OBJECT__" - ], - "compensation_details_pdf": [ - "__FILE_OBJECT__" - ], - "selection_procedure_details_pdf": [ - "__FILE_OBJECT__", - "__FILE_OBJECT__" - ] + "selection_procedure_details": ["All rounds are complusory"], + "is_selection_procedure_details_pdf": ["true"], + "tentative_date_of_joining": ["15-01-2022"], + "allowed_branch": ["['CSE', 'EE']"], + "tentative_no_of_offers": ["5"], + "other_requirements": ["above 8 cpi"], + "company_details_pdf": ["__FILE_OBJECT__", "__FILE_OBJECT__"], + "description_pdf": ["__FILE_OBJECT__"], + "compensation_details_pdf": ["__FILE_OBJECT__"], + "selection_procedure_details_pdf": ["__FILE_OBJECT__", "__FILE_OBJECT__"] } ``` @@ -1056,8 +973,8 @@ Response is a Json with these fields ```json { - "action": "Add Placement", - "message": "Placement Added Successfully" + "action": "Add Placement", + "message": "Placement Added Successfully" } ``` @@ -1071,10 +988,10 @@ Response is a Json with these fields The possible responses for this api request are as follows -| Status Codes | Possible Messages | -| ------------- | ----------------- | -| 200 OK | `Placement Added Successfully` | -| 404 NOT FOUND | `Something went wrong` | +| Status Codes | Possible Messages | +| ------------- | ------------------------------ | +| 200 OK | `Placement Added Successfully` | +| 404 NOT FOUND | `Something went wrong` | You can see some common errors [here](#common-errors) @@ -1090,9 +1007,5 @@ Some common errors that you may see while accessing the Apis | 401 UNAUTHORIZED | `Access Denied. You are not allowed to use this service` | Your may not have required access to those access those Apis. | | 401 UNAUTHORIZED | `Token has wrong audience` | You may be using wrong credentials for Google OAuth2.0. | | 404 NOT FOUND | `User Not Found. Contact CDC for more details` | You may not be a user at CDC, IIT Dharwad. Please contact us to get your user account | -| 400 BAD_REQUEST | `Error Occurred` | Any random Error which can be seen in the {error} string. | -| 400 BAD_REQUEST | `Something went wrong` | Any random Error which can be seen in the {error} string. | - - - - +| 400 BAD_REQUEST | `Error Occurred` | Any random Error which can be seen in the {error} string. | +| 400 BAD_REQUEST | `Something went wrong` | Any random Error which can be seen in the {error} string. |