Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Is it possible make some 'processing' for data? #16

Open
mmuruev opened this issue Feb 16, 2016 · 3 comments
Open

Is it possible make some 'processing' for data? #16

mmuruev opened this issue Feb 16, 2016 · 3 comments

Comments

@mmuruev
Copy link

mmuruev commented Feb 16, 2016

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?

@alexisjanvier
Copy link
Contributor

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…

@mmuruev
Copy link
Author

mmuruev commented Feb 17, 2016

So is it possible? How?

@alexisjanvier
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants