The REST SDK works with the IRestClient interface and can be used through dependency injection. The IRestClient interface has the following primary methods for working with data:
IRestClient
GetItem
GetItems
CreateItem
UpdateItem
DeleteItem
The IRestClient interface is automatically registered and is initialized for each request.
To use it, you need to inject it in the constructor through dependency injection (DI), like in the following example:
To use the IRestClient interface in custom controllers, you need to manually initialize the interface, like in the following example:
To use the IRestClient interface in external projects, which do not use Sitefinity ASP.NET Core Renderer, you need to manually:
The following examples demonstrate how to use the IRestClient interface:
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important