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

Commit 5ffdc7a

Browse files
escape hatch back to index from stream
1 parent ba1f46d commit 5ffdc7a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/SqlStreamStore.HAL/Resources/StreamResource.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public async Task<Response> GetPage(ReadStreamOperation operation, CancellationT
7575
.AddLinks(Links.Navigation(page, operation))
7676
.AddLinks(Links.Feed(operation))
7777
.AddLinks(Links.Metadata(operation))
78+
.AddLinks(Links.Index())
7879
.AddEmbeddedResource(
7980
Constants.Relations.AppendToStream,
8081
Schemas.AppendToStream)
@@ -181,6 +182,11 @@ public static Link Metadata(ReadStreamOperation operation)
181182
Constants.Relations.Metadata,
182183
$"{operation.StreamId}/metadata");
183184

185+
public static Link Index()
186+
=> new Link(
187+
Constants.Relations.Index,
188+
"..");
189+
184190
public static IEnumerable<Link> Navigation(ReadStreamPage page, ReadStreamOperation operation)
185191
{
186192
var first = First(page, operation);

0 commit comments

Comments
 (0)