sonda/internal/api/http
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi e14c523828 feat(catalog): add the read API for artists, albums and tracks
- feat(api): GET /api/v1/artists, /albums and /tracks with q (case and accent
  insensitive substring), limit and offset (default 50, at most 200) and a
  total; filters library_id, artist_id and album_id; GET /artists/{id},
  /albums/{id} and /tracks/{id}; any signed-in user can read
- feat(catalog): only tracks with a file that is not flagged missing are
  visible, so everything shown can be played; a track with several files is
  listed once; album artists without credited tracks (compilations) are listed
- feat(storage): results are ordered the same way on SQLite and PostgreSQL
  (plain byte order), LIKE wildcards in the search text are escaped, and a
  page costs a fixed number of queries: related items and counts are loaded in
  batches
- feat(storage): tracks get a title_key computed in Go (migration 0006, with
  a startup refresh), like artists and albums
- test: ordering, paging, search with accents and wildcards, library filter,
  duplicate encodings, missing files, details, and a query-count guard on
  both databases
2026-11-11 13:43:38 +01:00
..
api_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
auth_test.go fix(streaming): open files through os.Root and tighten token parsing 2026-11-11 13:00:17 +01:00
catalog_test.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
errors.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
handlers_auth.go feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
handlers_catalog.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
handlers_libraries.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
handlers_library.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
handlers_listen.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
handlers_stream.go feat(streaming): stream tracks with HTTP Range support 2026-11-11 12:56:20 +01:00
handlers_users.go feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
libraries_test.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
library_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
middleware.go fix(streaming): open files through os.Root and tighten token parsing 2026-11-11 13:00:17 +01:00
router.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
stream_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00