react-feature-generation
v1.0.2
Published
```json { "scripts": { "generate-crud": "node ./node_modules/your-package-name/generateInteractiveCRUD.js" } } ```
Downloads
111
Readme
react-feature-generation
{
"scripts": {
"generate-crud": "node ./node_modules/your-package-name/generateInteractiveCRUD.js"
}
}
Middleware data structures Columns -> Hide Not Interested Columns -> Filter By Role -> Filter By User Settings
API Columns API CRUD
- Register API name (ex: Users)
- Register API endpoint (ex: '/users' )
- Register API description
- API Create
- API Settings Dynamic Select (value, label) Register Role Validation Register Validation Field Type Register Validation Field Unique, Exist (Database Validation) Register Custom Validation Register Converter Before Save Register Serializer Response (Serializer Read One, Custom Success Create Response)
- API Update
- API Settings Register Validation Field Type Register Validation Field Unique, Exist (Database Validation) Register Custom Validation Register Converter Before Create Register Serializer Response (Serializer Read One, Custom Success Update Response)
- API Delete Register Checker Related Tables Register Before Delete Action Register Serializer Response (Serializer Read One, Custom Success Delete Response)
- API Read One
- API Read All
Module Models GET /models GET /models/:modelId POST /models UPDATE /models/:modelId DELETE /models/:modelId
Module Fields GET /models/:modelId/fields GET /models/:modelId/fields/:columnId POST /models/:modelId/fields UPDATE /models/:modelId/fields/:id DELETE /models/:model/fields/:id UPDATE /models/:modelId/fields/views
Module CRUD settings GET crud/:modelName/create/settings POST crud/:modelName/create/settings GET crud/:modelName/update/settings POST crud/:modelName/update/settings GET crud/:modelName/delete/settings POST crud/:modelName/delete/settings GET crud/:modelName/find-one/settings POST crud/:modelName/find-one/settings GET crud/:modelName/find-all/settings POST crud/:modelName/find-all/settings
Module CRUD API GET crud-api/:modelName/ GET crud-api/:modelName/:id POST crud-api/:modelName/ UPDATE crud-api/:modelName/:id DELETE crud-api/:modelName/:id