Comments (6)
Agreed, I will think about this a bit more to see optimal solution for both paradigms.
from strapi-plugin-transformer.
Support for both deny and allow list filtering has been released in v3
from strapi-plugin-transformer.
With the current version the only way to do so is to send the Strapi-Transformer-Ignore header on all routes that you do not want the transforms to run.
Once the next version is released you can utilize the denyList config setting to opt out of all apis that the transformation should not run on.
from strapi-plugin-transformer.
@ComfortablyCoding don't you think there should be a way to do it the opposite way also, i.e, mention which routes to work on? I have too many APIs being already used at many places. So I can't enable this change on my project, as it would lead to breaking changes, and sending the Strapi-Transformer-Ignore header everywhere Strapi APIs are being called is not a sane option in my case as you would imagine.
Thanks!
from strapi-plugin-transformer.
@ComfortablyCoding The deny list is not working.
This is my configuration:
`transformer': {
enabled: true,
config: {
prefix: '',
responseTransforms: {
removeAttributesKey: true,
removeDataKey: true,
},
denyList: {
'api::service.service': true,
}
}
},
from strapi-plugin-transformer.
@Montaser-BE Please open a new issue outlining
- expected behaviour
- what is currently happening
- version of strapi
- version of the plugin
- current transformer plugin settings in plugins.js
And any other relevant debug info.
from strapi-plugin-transformer.
Related Issues (20)
- [FEAT] Transformations are not visible in Documentation plugin
- Update yup to v1 branch
- Not working - strapi v 4.24 HOT 1
- TypeError: Cannot read properties of undefined (reading 'uid') HOT 20
- Config not being set correctly HOT 3
- DenyList is not working in my strapi project HOT 1
- hook example
- [FR] add transformation support for plugin APIs HOT 7
- remove "data" property from JSON Datatype HOT 3
- [bug] custom collections are not transformed HOT 7
- The plugin doesn't change the response
- Request to include modifyResponseBodyData as an available service method HOT 1
- strapi-plugin-publisher still has attributes key HOT 3
- Custom Path for content-type not registering middleware in v3.0 HOT 2
- DUPLICATE
- Is anyway to removeAttributesKey when i use strapi-plugin-menus HOT 1
- transformResponse is not working strapin v4.9.0. HOT 1
- Error de Login HOT 2
- Plugin configuration needs to be inside .config/env/ HOT 2
- [BUG] repeatable component with nested component that contains a relation is not transformed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi-plugin-transformer.