Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 5e4a0e3

Browse files
send the entire page down as a resource
1 parent 5d2a01d commit 5e4a0e3

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/SqlStreamStore.HAL/Resources/AllStreamResource.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ public async Task<Response> GetPage(
4141
.ToArray());
4242

4343
var response = new Response(
44-
new HALResponse(new object())
44+
new HALResponse(new
45+
{
46+
page.FromPosition,
47+
page.NextPosition,
48+
page.IsEnd
49+
})
4550
.AddLinks(Links.All.SelfFeed(options))
4651
.AddLinks(Links.All.Navigation(page, options))
4752
.AddLinks(Links.All.Feed(options))

src/SqlStreamStore.HAL/Resources/StreamResource.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ public async Task<Response> GetPage(ReadStreamOptions options, CancellationToken
6666
new HALResponse(new
6767
{
6868
page.LastStreamVersion,
69-
page.LastStreamPosition
69+
page.LastStreamPosition,
70+
page.FromStreamVersion,
71+
page.NextStreamVersion,
72+
page.IsEnd
7073
})
7174
.AddLinks(Links.Stream.Self(options))
7275
.AddLinks(Links.Stream.Navigation(page, options))

0 commit comments

Comments
 (0)