Browse Source

Extend api.

pull/304/head
Sebastian 8 years ago
parent
commit
f9f7cede58
  1. 5
      src/Squidex/Areas/Api/Controllers/Schemas/Models/CreateSchemaDto.cs
  2. 5
      src/Squidex/Areas/Api/Controllers/Schemas/Models/SchemaDto.cs

5
src/Squidex/Areas/Api/Controllers/Schemas/Models/CreateSchemaDto.cs

@ -37,6 +37,11 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// </summary> /// </summary>
public bool Publish { get; set; } public bool Publish { get; set; }
/// <summary>
/// Set to true to allow a single content item only.
/// </summary>
public bool Singleton { get; set; }
public CreateSchema ToCommand() public CreateSchema ToCommand()
{ {
var command = new CreateSchema(); var command = new CreateSchema();

5
src/Squidex/Areas/Api/Controllers/Schemas/Models/SchemaDto.cs

@ -44,6 +44,11 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// </summary> /// </summary>
public bool IsPublished { get; set; } public bool IsPublished { get; set; }
/// <summary>
/// Indicates if the schema is a singleton.
/// </summary>
public bool IsSingleton { get; set; }
/// <summary> /// <summary>
/// The user that has created the schema. /// The user that has created the schema.
/// </summary> /// </summary>

Loading…
Cancel
Save