This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change classes to records & add poc endpoints
- Loading branch information
1 parent
5f5e57f
commit 9d957f3
Showing
6 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
Epsilon.Host.WebApi/Responses/GetDocumentComponentResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
9
Epsilon.Host.WebApi/Responses/GetDocumentKpiMatrixResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
6
Epsilon.Host.WebApi/Responses/GetDocumentStructureResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters