Adds the music track stream endpoint

Adds the track stream route, its query, validator and handler, a flat stream projection in the track repository, and an endpoint that streams the audio file with HTTP range support. Excludes the route from the eventual consistency pipeline through endpoint metadata and limits it per user with a concurrency limiter. Missing, unreadable and out of scope files are reported as not found without leaking the path. Adds the API and request documentation and the stream tests.
This commit is contained in:
BinaryAlley committed 2026-10-13 22:18:36 +03:00
1 parent 0ad6e1307b
commit 4ffa81fffe
18 files changed
+985

No files matched your search

@@ -0,0 +1,3 @@
GET {{host}}/api/v1/libraries/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/{{$guid}}/stream
Authorization: Bearer {{ACCESS_TOKEN}}
Range: bytes=0-1048575