DEV Community

Daniel Coturel
Daniel Coturel

Posted on

3 1

CakePHP Controller only for API use

Hi,

I just wanted to leave this here in case if anyone works with CakePHP 3 framework. It's a plugin written by me, that allows you to "bake" (that means, generate code) a controller only for API use.
This stands for:

1) Left the standard index, view, add, edit and delete
2) Removed every redirect
3) Added the _serialize variable setting

This is the repository:

https://github.com/dcoturel/api_controller

Also, I'm open to contributions. One thing I want to investigate is OpenGl. I think it would be useful to have an endpoint that can work with that specification and retrieve results based on filters.

Saludos,

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay