Hacker News new | past | comments | ask | show | jobs | submit login

This is awesome. Is there any way to add custom hooks to a create/update/delete operation? For example, I want to call run a script or program every time a user is created; for example to add that user to an LDAP directory or remote server.

Do the hooks have to be Ruby code?




It's possible to override default CRUD with custom actions/forms and so all additional data processing will be handled on the product back end API side.

So let's say to want to add user to some LDAP directory once the user is created in Motor Admin.

In order to do that you need to override the default user creation form and send data from that form to your API back end so you can handle user creation in LDAP from there: https://monosnap.com/file/3CD1qKgNoTBOhwTwzLiNJXTUNgi8yH

All those API requests are sent with JWT header - so it's possible to validate them on the back end.


Thanks. Would my backend also handle the database changes or does Motor Admin still do that with a custom form?


For custom forms and actions everything should be handled on the backend API including the DB changes.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: