// ========================================================================== // 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; namespace Squidex.Extensions.Actions.Webhook { [RuleAction( Title = "Webhook", IconImage = "", IconColor = "#4bb958", Display = "Send webhook", Description = "Send events like ContentPublished to your webhook.", ReadMore = "https://en.wikipedia.org/wiki/Webhook")] public sealed class WebhookAction : RuleAction { [Required] [Display(Name = "Url", Description = "The url to the webhook.")] [DataType(DataType.Text)] [Formattable] public Uri Url { get; set; } [Display(Name = "Shared Secret", Description = "The shared secret that is used to calculate the signature.")] [DataType(DataType.Text)] public string SharedSecret { get; set; } [Display(Name = "Payload", Description = "The optional custom request payload.")] [DataType(DataType.MultilineText)] [Formattable] public string Payload { get; set; } } }