/Fastor_Assignment

Designing a backend for a customer relationship management(CRM) system.

Primary LanguageJavaScript

Fastor Assignment

This API is designed for a customer relationship management(CRM) system.

API Endpoints

User Endpoints

  1. Signup
  • Method: POST
  • Endpoint: /user/signup
  1. Login
  • Method: POST
  • Endpoint: /user/login

Enquiry Endpoints

  1. Public form API must be accessible without any authentication.
  • Method: POST
  • Endpoint: /employee/enquiry
  1. API to claim leads.
  • Method: PATCH
  • Endpoint: /employee/:id/claim
  1. API to fetch unclaimed leads.
  • Method: GET
  • Endpoint: /employee/unclaim
  1. API to fetch leads claimed by logged-in users
  • Method: GET
  • Endpoint: /employee/Allclaim