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
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.
Description:
The current implementation of the GET
/contacts/searchByPhone
endpoint throws a 500 Internal Server Error when thephoneNumber
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.