Open RajiDurai opened 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' } ];
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