I’m writing a custom v8js script API to make a CouchDB API that can access views. I’m wondering if there is a way with Dreamfactory to allow user roles only access to certain tables? Are components in role definitions supported for custom scripts?
Yes, Role definitions can be added for scripts and remote web services down to the component level, but they require you to add swagger definitions for your service. Otherwise, DreamFactory doesn’t know that the components exist.
Thanks for the response! I’ve written a swagger definition for my service
which populates the API Docs, but I haven’t used it to create components.
What type of data type or schema gets translated from the swagger
definition into a component as seen by DreamFactory?