Q. What is the purpose of an API endpoint in CakePHP?