Added api endpoints and configured hopframe

This commit is contained in:
2025-01-20 18:52:04 +01:00
parent 49b5339bb3
commit 6ba7275e92
16 changed files with 206 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
namespace Portfolio.Shared.Models;
public class About {
public sealed class About {
[Key]
public int Id { get; private set; } = 0;

View File

@@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Portfolio.Shared.Models;
public class TimelineEntry {
public sealed class TimelineEntry {
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; init; }

View File

@@ -0,0 +1,9 @@
using Portfolio.Shared.Models;
namespace Portfolio.Shared.Services;
public interface IAboutRepository {
Task<About> GetAbout(CancellationToken ct);
}

View File

@@ -0,0 +1,9 @@
using Portfolio.Shared.Models;
namespace Portfolio.Shared.Services;
public interface IProjectRepository {
Task<IEnumerable<Project>> GetProjects(CancellationToken ct);
}

View File

@@ -0,0 +1,9 @@
using Portfolio.Shared.Models;
namespace Portfolio.Shared.Services;
public interface ITechnologyRepository {
Task<IEnumerable<Technology>> GetTechnologies(CancellationToken ct);
}

View File

@@ -0,0 +1,9 @@
using Portfolio.Shared.Models;
namespace Portfolio.Shared.Services;
public interface ITimelineRepository {
Task<IEnumerable<TimelineEntry>> GetTimeline(TimelineEntryType type, CancellationToken ct);
}