Files
Umbraco-CMS/src/Umbraco.Core/Services/IWebhookService.cs
Nikolaj Geisle e143133bcf V13: Update IWebHookService to proper casing (#15169)
* Update to proper casing

* Fixed naming

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Andreas Zerbst <andr317c@live.dk>
2023-11-10 08:20:22 +01:00

41 lines
1.1 KiB
C#

using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Services;
public interface IWebhookService
{
/// <summary>
/// Creates a webhook.
/// </summary>
/// <param name="webhook"><see cref="Webhook" /> to create.</param>
Task<Webhook> CreateAsync(Webhook webhook);
/// <summary>
/// Updates a webhook.
/// </summary>
/// <param name="webhook"><see cref="Webhook" /> to update.</param>
Task UpdateAsync(Webhook webhook);
/// <summary>
/// Deletes a webhook.
/// </summary>
/// <param name="key">The unique key of the webhook.</param>
Task DeleteAsync(Guid key);
/// <summary>
/// Gets a webhook by its key.
/// </summary>
/// <param name="key">The unique key of the webhook.</param>
Task<Webhook?> GetAsync(Guid key);
/// <summary>
/// Gets all webhooks.
/// </summary>
Task<PagedModel<Webhook>> GetAllAsync(int skip, int take);
/// <summary>
/// Gets webhooks by event name.
/// </summary>
Task<IEnumerable<Webhook>> GetByAliasAsync(string alias);
}