Added api endpoints and configured hopframe
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Portfolio.Shared.Models;
|
||||
|
||||
public class About {
|
||||
public sealed class About {
|
||||
|
||||
[Key]
|
||||
public int Id { get; private set; } = 0;
|
||||
|
||||
@@ -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; }
|
||||
|
||||
9
src/Portfolio.Shared/Services/IAboutRepository.cs
Normal file
9
src/Portfolio.Shared/Services/IAboutRepository.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Portfolio.Shared.Models;
|
||||
|
||||
namespace Portfolio.Shared.Services;
|
||||
|
||||
public interface IAboutRepository {
|
||||
|
||||
Task<About> GetAbout(CancellationToken ct);
|
||||
|
||||
}
|
||||
9
src/Portfolio.Shared/Services/IProjectRepository.cs
Normal file
9
src/Portfolio.Shared/Services/IProjectRepository.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Portfolio.Shared.Models;
|
||||
|
||||
namespace Portfolio.Shared.Services;
|
||||
|
||||
public interface IProjectRepository {
|
||||
|
||||
Task<IEnumerable<Project>> GetProjects(CancellationToken ct);
|
||||
|
||||
}
|
||||
9
src/Portfolio.Shared/Services/ITechnologyRepository.cs
Normal file
9
src/Portfolio.Shared/Services/ITechnologyRepository.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Portfolio.Shared.Models;
|
||||
|
||||
namespace Portfolio.Shared.Services;
|
||||
|
||||
public interface ITechnologyRepository {
|
||||
|
||||
Task<IEnumerable<Technology>> GetTechnologies(CancellationToken ct);
|
||||
|
||||
}
|
||||
9
src/Portfolio.Shared/Services/ITimelineRepository.cs
Normal file
9
src/Portfolio.Shared/Services/ITimelineRepository.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Portfolio.Shared.Models;
|
||||
|
||||
namespace Portfolio.Shared.Services;
|
||||
|
||||
public interface ITimelineRepository {
|
||||
|
||||
Task<IEnumerable<TimelineEntry>> GetTimeline(TimelineEntryType type, CancellationToken ct);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user