Override API '/umbraco/backoffice/umbracoapi/content/GetById'
I want to override the /umbraco/backoffice/umbracoapi/content/GetById API and add additional processing to that call. Simply I want to validate some custom content added by me(through a package)
When I check the documentation I did not find any Umbraco API do do this. I found below solutions,
Use a Middleware to intercept the necessary requests and modify the
response body.
Use JavaScript code on frontend to process the content(using html and JS files on my package)
Use DelegatingHandler to intercept and modify response body
Override API '/umbraco/backoffice/umbracoapi/content/GetById'
I want to override the /umbraco/backoffice/umbracoapi/content/GetById API and add additional processing to that call. Simply I want to validate some custom content added by me(through a package)
When I check the documentation I did not find any Umbraco API do do this. I found below solutions,
Is there any standard way to do this ?
hello there,
maybe you can find something here,
https://apidocs.umbraco.com/v13/ui/#/api/umbraco.resources.contentResource
I normally use the Hijacking "way" of doing this. It's simple and easy to understand and use.
https://docs.umbraco.com/umbraco-cms/reference/routing/custom-controllers
is working on a reply...