marmelab/microrest.php

Is it possible make some 'processing' for data?

Opened this issue · 3 comments

What if I want do some actions to on api calls? Like prepare data, save in my own way.. resend it to another service? Any hooks for this?

It’s a fundamental feature for microrest to be able to hook the default API’s behaviour. That’s what we try to do using middlewares based on stackPHP. This work is visible on the branch stackphp. But it’s a work in (realy slow) progress…

So is it possible? How?

In fact, It isn't yet possible. But the idea is to use microrest as middleware (thank's to stackphp), and by adding your own middleware after Microrest be able to override the http response.