Skip to main content

Customer search by free text

GET 

/calendar-backend/api/v1/customers/searchcustomer

Customer search by free text.

Searches for customers by firstname, last name, email, phone number or dateOfBirth that begins with the provided search text. In order to match phone number a search string length of 5 is required. Searching for 2-3 characters will match exact against first and last name (not using wildcards).

To match on 'date of birth' the complete date should be provided using the format YYYY-MM-DD or YYYYMMDD.

Example:

curl -u username:password -X GET
http://localhost:8080/calendar-backend/api/v1/customers/searchcustomer?text=Charles

Responses​

A list of GenericCustomer instances found during the search