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

Commit 437b458

Browse files
use uri templates for listing streams
1 parent a5e7c22 commit 437b458

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/SqlStreamStore.HAL/AllStreamMessage/AllStreamMessageResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public async Task<Response> Get(
6262
message.Type,
6363
payload,
6464
metadata = message.JsonMetadata
65-
}).AddLinks(links));
65+
}).AddLinks(links));
6666
}
6767
}
6868
}

src/SqlStreamStore.HAL/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static class Relations
6060
public const string DeleteStream = StreamStorePrefix + ":delete-stream";
6161
public const string DeleteMessage = StreamStorePrefix + ":delete-message";
6262
public const string Find = StreamStorePrefix + ":find";
63-
public const string ListStreams = StreamStorePrefix + ":list-streams";
63+
public const string ListStreams = StreamStorePrefix + ":feed-browser";
6464
}
6565

6666
public static class Streams

src/SqlStreamStore.HAL/LinksExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ public static Links Index(this Links links) =>
77

88
public static Links Find(this Links links)
99
=> links.Add(Constants.Relations.Find, "streams/{streamId}", "Find a Stream");
10+
11+
public static Links Browse(this Links links)
12+
=> links.Add(Constants.Relations.Browse, "stream/browse{?p,t,m}");
1013
}
1114
}

0 commit comments

Comments
 (0)