libretime/api/libretime_api/storage
Keoni Mahelona b1bdd6d9be
feat(api): added filters on genre & md5 for files api (#3127)
### Description
Added filters for genre and md5 to the files API, e.g.
`/api/v2/files?genre=soul`

**This is a new feature**: Yes

**I have updated the documentation to reflect these changes**: No
There should be a schema and docs that are generated automatically. I
don't know where that is.


### Testing Notes

**What I did:**
- Used docker to deploy locally
- Confirmed filters work at
http://localhost:8080/api/v2/files?genre=Soul

**How you can replicate my testing:**
- `make clean dev`
- Upload some files!
- Visit http://localhost:8080/api/v2/files
- You can use the filters
<img width="658" alt="Screenshot 2024-12-23 at 01 36 01"
src="https://github.com/user-attachments/assets/ba19f7f3-fb3e-495d-8937-d451c70d326c"
/>
<img width="652" alt="Screenshot 2024-12-23 at 01 35 56"
src="https://github.com/user-attachments/assets/c7191131-a963-463a-b52f-9d0952192555"
/>

_How can the reviewer validate this PR?_
- See above
- wrote tests to confirm filters work
2025-01-08 16:54:53 +00:00
..
management refactor: don't use f-string on logging statements 2023-02-26 19:09:51 +02:00
models feat: configure cue points analysis per track type 2023-02-15 10:13:32 +02:00
serializers feat(api): don't use hyperlinked serializers (#1984) 2022-07-27 09:54:57 +02:00
tests feat(api): added filters on genre & md5 for files api (#3127) 2025-01-08 16:54:53 +00:00
views feat(api): added filters on genre & md5 for files api (#3127) 2025-01-08 16:54:53 +00:00
__init__.py feat(api): split api into multiple apps (#1626) 2022-04-04 14:38:50 +02:00
apps.py feat(api): split api into multiple apps (#1626) 2022-04-04 14:38:50 +02:00
router.py feat(api): don't use trailing slashes (#1982) 2022-07-22 17:34:09 +02:00