This documentaion provides details about the Creating,updating and fetching datas of Employees,Leads,Contacts and Services, implemented using Node.js and Express with tokenized requests and role based validations.
URL - Website Url
bcryptjs - For Password hashing,your data is safe and secure.
JWT - For tokenized requests and role based authorizations in our website.
Nodemailer - For sending mails for verification and Password Resets.
Note: Since I'm deployed the apis in render's free tier, The initial request is taking time, Please wait little longer for initial request
https://mycrm-d2t8.onrender.com/ - POST method
Description : This method requires users Email and Password to validate.Only Validated Users are allowed to sign in.
https://mycrm-d2t8.onrender.com/Dashboard - Get method
Description : This method will fetch total counts of contacts, Leads and Services Created to display in frontend.
https://mycrm-d2t8.onrender.com/Lead/ - POST method
Description : This method requires Leads Email and Password to validate.Only Validated Leads are allowed to sign in.
https://mycrm-d2t8.onrender.com/verifyUser - Put method
Description : This method requires users Email to validate and send mail for verification to that User.Link sent will have JWT which is valid for only 5 minutes.
Description : This method will verify the Users and Grant them access.Only verified users are allowed to modify datas in Leads,Contacts and users.Other users can only be able to view the datas.
(id - User Id , pin - Randomly generated String , token - JWT)
https://mycrm-d2t8.onrender.com/ForgotPassword - Put method
Description : This method verify the users with their Email.If the users exists,It will send the reset password Link to their Email.Link sent will have JWT which is valid for only 5 minutes.
https://mycrm-d2t8.onrender.com/Lead/ForgotPassword - Put method
Description : This method verify the leads with their Email.If the leads exists,It will send the reset password Link to their Email.Link sent will have JWT which is valid for only 5 minutes.
Description : This method validate the Reset link and let the users to set or reset their Passwords.
(id - User Id , pin - Randomly generated String , token - JWT)
Description : This method validate the Reset link and let the leads to set or reset their Passwords.
(id - User Id , pin - Randomly generated String , token - JWT)
https://mycrm-d2t8.onrender.com/Logout - Get method
Description - This method will delete the token and logout the users.
https://mycrm-d2t8.onrender.com/ValidCheck - Get method
Description - This method check whether the token is present or not(For Frontend)
Only Manager and Admin with access can modify Employees data.Users without access can only able to view data.
https://mycrm-d2t8.onrender.com/users/Create - Post method
Description : This method will create new users.
https://mycrm-d2t8.onrender.com/users/delete/:id - Delete method
Description : This method only delete the users not holding any important data.
(id - User Email)
https://mycrm-d2t8.onrender.com/users - Get method
Description - This method will fetch details of all Employees.
https://mycrm-d2t8.onrender.com/users/:id - Get method
Description - This method will fetch complete details of a Particular employee with Leads, Services and Contacts Created.
(id - User Id)
https://mycrm-d2t8.onrender.com/users/update/:id - Put method
Description - This method will update the details of an employee
(id - User Id)
https://mycrm-d2t8.onrender.com/manager/Create - Post method
Description : This method will create new users.
https://mycrm-d2t8.onrender.com/manager/delete/:id - Delete method
Description : This method only delete the managers not holding any important data.
(id - Manager Email)
https://mycrm-d2t8.onrender.com/manager - Get method
Description - This method will fetch details of all managers.
https://mycrm-d2t8.onrender.com/manager/:id - Get method
Description - This method will fetch complete details of a Particular manager with Leads, Services and Contacts Created.
(id - Manager Id)
Description - This method will update the details of an manager
(id - Manager Id)
Only Admin , Manager and Employees with access can modify Leads data.Other can only be able to view it.
https://mycrm-d2t8.onrender.com/Lead/create - Post method
Description : This method will create new leads.
https://mycrm-d2t8.onrender.com/Lead/delete/:id - Delete method
Description : This method delete the lead.
(id - Lead Email)
https://mycrm-d2t8.onrender.com/Lead/LeadData - Get method
Description - This method will fetch details of all leads.
https://mycrm-d2t8.onrender.com/Lead/:id - Get method
Description - This method will fetch complete details of a Particular Leads with Services Requests Created and Employee who created that lead.
(id - Lead Id)
https://mycrm-d2t8.onrender.com/Lead/update/:id - Put method
Description - This method will update the status of a Lead
(id - Lead Id)
Only Admin , Manager and Employees with access can modify Service Request .Other can only be able to view it.
https://mycrm-d2t8.onrender.com/Services/create - Post method
Description : This method will create new service requests.
https://mycrm-d2t8.onrender.com/Services/delete/:id - Delete method
Description : This method delete the Service Request.
(id - Service Request Id)
Description - This method will fetch details of all service requests.
https://mycrm-d2t8.onrender.com/Services/:id - Get method
Description - This method will fetch complete details of a Particular Service Request with details of Employee assigned and lead who created that request.
*(id - Service Request Id)
https://mycrm-d2t8.onrender.com/Services/update/:id - Put method
Description - This method will update the status of a Service Request
(id - Service Request Id)
Only Admin , Manager and Employees with access can modify Contacts.Other can only be able to view it.
https://mycrm-d2t8.onrender.com/Contacts/create - Post method
Description : This method will create new contacts.
https://mycrm-d2t8.onrender.com/Contacts/delete/:id - Delete method
Description : This method delete the Contact.
(id - Contact Email)
https://mycrm-d2t8.onrender.com/Contacts - Get method
Description - This method will fetch details of all contacts.
https://mycrm-d2t8.onrender.com/Contacts/:id - Get method
Description - This method will fetch complete details of a Particular Contact.
(id - Contact Id)
https://mycrm-d2t8.onrender.com/Contacts/update/:id - Put method
Description : This method will update the details of a contact.
(id - Contact Id)
description : This method will delete the contact as contact and create them as lead.
(id - Contact Email)