Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Change classes to records & add poc endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
HansenSven authored and Typiqally committed May 26, 2023
1 parent 5f5e57f commit 9d957f3
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 14 deletions.
5 changes: 3 additions & 2 deletions Epsilon.Host.WebApi/Models/Document.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Epsilon.Host.WebApi.Models;

public class Document
public record CompetenceDocument
{
public IEnumerable<int> ComponentIds { get; set; }
public HomePage HomePage { get; set; }
public KpiMatrix KpiMatrix { get; set; }
}
13 changes: 5 additions & 8 deletions Epsilon.Host.WebApi/Responses/GetDocumentComponentResponse.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
namespace Epsilon.Host.WebApi.Responses;
using Epsilon.Host.WebApi.Interfaces;

public class GetComponentResponse
namespace Epsilon.Host.WebApi.Responses;

public record GetComponentResponse
{
public int Id { get; set; }
public string Type { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public object Config { get; set; }
public object Data { get; set; }
public IComponent Component { get; set; }
}
9 changes: 9 additions & 0 deletions Epsilon.Host.WebApi/Responses/GetDocumentHomePageResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Epsilon.Host.WebApi.Models;

namespace Epsilon.Host.WebApi.Responses;

public record GetDocumentHomePageResponse
{
public int DocumentId { get; set; }
public HomePage HomePage { get; set; }
}
9 changes: 9 additions & 0 deletions Epsilon.Host.WebApi/Responses/GetDocumentKpiMatrixResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Epsilon.Host.WebApi.Models;

namespace Epsilon.Host.WebApi.Responses;

public record GetDocumentKpiMatrixResponse
{
public int DocumentId { get; set; }
public KpiMatrix KpiMatrix { get; set; }
}
6 changes: 2 additions & 4 deletions Epsilon.Host.WebApi/Responses/GetDocumentStructureResponse.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Epsilon.Host.WebApi.Models;
namespace Epsilon.Host.WebApi.Responses;

namespace Epsilon.Host.WebApi.Responses;

public class GetDocumentStructureResponse
public record GetDocumentStructureResponse
{
public int DocumentId { get; set; }
public IEnumerable<int> ComponentIds { get; set; }
Expand Down

0 comments on commit 9d957f3

Please sign in to comment.