RajiDurai / customer-management-backend

To display a customer list based on filters set to customer's firstName, lastName and companyName
0 stars 0 forks source link

Write backend business logic with use case #2

Open RajiDurai opened 3 months ago

RajiDurai commented 3 months ago

Search functionality:

Input : GET request to endpoints - http://localhost:5000/search?query=Raji. This request is currently hardcoded in url (to be implemented in front end) Output : returns json data of customers list with matching first name or last name. Edge cases : non-English characters

Filter functionality

Input : GET request to endpoints - http://localhost:5000/filter?query=Google. This request is currently hardcoded in url (to be implemented in front end) Output : returns json data of customers list with matching company name. Edge cases : non-English characters

RajiDurai commented 3 months ago

Data set const customers = [ { id: 1, firstName: 'Raji', lastName: 'Durai', company: 'NewRelic' }, { id: 2, firstName: 'Rachel', lastName: 'Smith', company: 'Google' }, { id: 2, firstName: 'Dhara', lastName: 'Thamil', company: 'Google' } ];