AmericaSCORESBayArea / salesforce-data-api

This project is based on Mulesoft Dataweave and Salesforce to provide secure, reliable, API access for all the Scores apps and projects. It is hosted on Anypoint and acts as the transactional hub, in concert with the authentication API
3 stars 1 forks source link

GET /contacts/searchByPhone - Handle Wrong Input #210

Open AleksandrMolchagin opened 5 months ago

AleksandrMolchagin commented 5 months ago

Description:

The current implementation of the GET /contacts/searchByPhone endpoint throws a 500 Internal Server Error when the phoneNumber parameter receives incorrect input.

Expected Behavior:

The system should validate the phoneNumber parameter. If the input is invalid, the system should return a 400 Bad Request error with an appropriate message indicating the nature of the input error.

Image