Creating a RESTful API resource in CakePHP 4 Here’s how to quickly convert a controller into an API resource