Introduction
When building web applications, you will almost always find yourself building an API at some point. This is a data interface to your application; it is exposed via endpoints, which are consumed by another application or script, instead of a normal user.
Here, we'll look at a couple of ways to expose an API using CakePHP, so you can then decide which fits best with your application.