New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Option to disable/enable transformation for specific routes or requests #33
Comments
Hello, Appreciate the interest! Yes, this should be possible. A request header that indicates that transformation should be skipped sounds fairly easy to implement. At the moment I am considering using Eventually an allow/block list can also be added but that will require more work/thought before implementing. |
Request header name Benefits would be:
Just one more question before settling on this: |
The In terms of the allow list it would be a seperate property in the settings as it's responsible for a different functionality. Most likely named I will need to research and see how feasible it is to allow regex type routes ( |
Thanks for the reply, it makes sense and I agree. |
Hi,
this plugin was just presented in the Strapi Community Call and it looks potentially very useful to solve a problem that my team currently faces:
We're currently migrating from v3 to v4.
I understand that v4's API responses are structured significantly different from v3's API responses and it looks like your transformer plugin brings v4's API responses closer to the format that v3 returned. This could potentially simplify the refactoring that is needed in our applications that consume data from Strapi or at least allow us to do it step by step.
Would it be possible to enable or disable the response transformation executed by your plugin by route (e.g. with a more atomic configuration) or by request (e.g. by providing a certain request header)?
The text was updated successfully, but these errors were encountered: