View Source
Class WebhookController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "TreeAccessWebhooks")]
public class WebhookController : UmbracoAuthorizedJsonController
Constructors
View Source
WebhookController(IWebhookService, IUmbracoMapper, WebhookEventCollection, IWebhookLogService, IWebhookPresentationFactory)
Declaration
public WebhookController(IWebhookService webhookService, IUmbracoMapper umbracoMapper, WebhookEventCollection webhookEventCollection, IWebhookLogService webhookLogService, IWebhookPresentationFactory webhookPresentationFactory)
Parameters
Type |
Name |
Description |
IWebhookService |
webhookService |
|
IUmbracoMapper |
umbracoMapper |
|
WebhookEventCollection |
webhookEventCollection |
|
IWebhookLogService |
webhookLogService |
|
IWebhookPresentationFactory |
webhookPresentationFactory |
|
Methods
View Source
Create(WebhookViewModel)
Declaration
[HttpPost]
public async Task<IActionResult> Create(WebhookViewModel webhookViewModel)
Parameters
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
Delete(Guid)
Declaration
[HttpDelete]
public async Task<IActionResult> Delete(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
GetAll(Int32, Int32)
Declaration
[HttpGet]
public async Task<IActionResult> GetAll(int skip = 0, int take = 2147483647)
Parameters
Type |
Name |
Description |
System.Int32 |
skip |
|
System.Int32 |
take |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
GetByKey(Guid)
Declaration
[HttpGet]
public async Task<IActionResult> GetByKey(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
GetEvents()
Declaration
[HttpGet]
public IActionResult GetEvents()
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.IActionResult |
|
View Source
GetLogs(Int32, Int32)
Declaration
[HttpGet]
public async Task<IActionResult> GetLogs(int skip = 0, int take = 2147483647)
Parameters
Type |
Name |
Description |
System.Int32 |
skip |
|
System.Int32 |
take |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|
View Source
Update(WebhookViewModel)
Declaration
[HttpPut]
public async Task<IActionResult> Update(WebhookViewModel webhookViewModel)
Parameters
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Mvc.IActionResult> |
|