Re: API Design using CakePHP 3

2016-03-10 Thread Florian Krämer
1) I would *not *avoid that. We use the protection and have no problem at all with it. 2) Create a filter and use it in beforeSave()? Create data objects like the entities in Cake and filter the date there before sending? 3) No idea what you're talking about, you basically say "It's not working

API Design using CakePHP 3

2016-03-09 Thread Rafael Queiroz
Hi guys, I make a *API* using *CakePHP 3.2.x*, so, and now have a angular app requesting *API*. My question is about association data, e.g. i have *Series* *Model* and send the request: *api.com/series/add * { "id": 5, "title": "New serie", "hidden": false,