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.
 
 
 
 
 

43 lines
1.2 KiB

// ==========================================================================
// ClientDto.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Squidex.Domain.Apps.Core.Apps;
namespace Squidex.Controllers.Api.Apps.Models
{
public sealed class ClientDto
{
/// <summary>
/// The client id.
/// </summary>
[Required]
public string Id { get; set; }
/// <summary>
/// The client secret.
/// </summary>
[Required]
public string Secret { get; set; }
/// <summary>
/// The client name.
/// </summary>
[Required]
public string Name { get; set; }
/// <summary>
/// The permissions of the client.
/// </summary>
[Required]
[JsonConverter(typeof(StringEnumConverter))]
public AppClientPermission Permission { get; set; }
}
}