Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookController

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    UmbracoAuthorizedJsonController
    Namespace: Umbraco.Cms.Web.BackOffice.Controllers
    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
    Type Name Description
    WebhookViewModel webhookViewModel
    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
    Type Name Description
    WebhookViewModel webhookViewModel
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Mvc.IActionResult>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • WebhookController(IWebhookService, IUmbracoMapper, WebhookEventCollection, IWebhookLogService, IWebhookPresentationFactory)
    • Methods
      • Create(WebhookViewModel)
      • Delete(Guid)
      • GetAll(Int32, Int32)
      • GetByKey(Guid)
      • GetEvents()
      • GetLogs(Int32, Int32)
      • Update(WebhookViewModel)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX