Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
1.1 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System;
using System.ComponentModel.DataAnnotations;
using Squidex.Domain.Apps.Core.HandleRules;
using Squidex.Domain.Apps.Core.Rules;
using Squidex.Infrastructure;
namespace Squidex.Extensions.Actions.Webhook
{
[RuleActionHandler(typeof(WebhookActionHandler))]
[RuleAction(
Display = "Send Webhook",
Description = "Send events like ContentPublished to your webhook.")]
public sealed class WebhookAction : RuleAction
{
[AbsoluteUrl]
[Required]
[Display(Name = "Url", Description = "he url to the webhook.")]
public Uri Url { get; set; }
[Display(Name = "Shared Secret", Description = "The shared secret that is used to calculate the signature.")]
public string SharedSecret { get; set; }
}
}