Haven’t had time to dig into this… I know script exist for the different CRUD operations in the UI but I’m wondering how I can update/delete/modify an entity by calling into a asp.net core method from these scripts and are there any docs on the topic? A nice little example somewhere would be appreciated.
Thanks in advance.
If you want to extend squidex source code there are several options:
- You can write a custom command middleware, that is executed synchronously when something is changed, e.g. the templates are implemented in this way:
- https://github.com/Squidex/squidex/blob/master/src/Squidex.Domain.Apps.Entities/Apps/Templates/CreateBlogCommandMiddleware.cs
- https://docs.squidex.io/architecture/02-extensions#command-handlers
- You can subscribe to events that happened in the system and then execute other commands:
If you do not want to extend Squidex, which I recommend, you can create webhooks and call your code in another service. You can then use the Squidex Client Library to make updates and so on.
Will stick with webhooks then.
I googled and found https://medium.com/squidex/webhooks-improved-6b4a517256ac
Is this the only resouce available? Checked docs.squidex.io but couldn’t find any more.