libretime/api/libretime_api
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
..
_fixtures feat(api): split api into multiple apps (#1626) 2022-04-04 14:38:50 +02:00
core chore: fix linting ignore comments (#3084) 2024-09-30 16:08:23 +01:00
history feat(api): don't use hyperlinked serializers (#1984) 2022-07-27 09:54:57 +02:00
legacy fix(legacy): migrations from airtime 2.5.1 (#3123) 2024-12-21 10:09:19 +00:00
mixins feat(api): enable writes to schedule table (#3109) 2024-11-18 16:10:54 +00:00
podcasts feat(api): don't use hyperlinked serializers (#1984) 2022-07-27 09:54:57 +02:00
schedule feat(api): enable writes to schedule table (#3109) 2024-11-18 16:10:54 +00:00
settings feat!: the `general.secret_key` configuration field is now required (#2841) 2023-12-27 18:15:47 +01:00
storage feat(api): added filters on genre & md5 for files api (#3127) 2025-01-08 16:54:53 +00:00
tests fix(api): upgrade django code (pre-commit) 2023-04-24 20:46:48 +01:00
__init__.py feat: add python packages version 2023-03-14 14:59:45 +00:00
_constants.py feat(api): split api into multiple apps (#1626) 2022-04-04 14:38:50 +02:00
asgi.py feat(api): split api into multiple apps (#1626) 2022-04-04 14:38:50 +02:00
conftest.py test(api): conftest at top level for global fixture access (#2038) 2022-08-10 12:36:56 +02:00
gunicorn.py fix(api): move gunicorn worker config to python file (#2854) 2023-12-29 17:47:50 +01:00
manage.py chore(api): disable some linting rule 2022-06-22 13:37:17 +02:00
permission_constants.py chore(api): disable duplicate-code check (#2799) 2023-12-18 18:54:07 +01:00
permissions.py fix(api): upgrade django code (pre-commit) 2023-04-24 20:46:48 +01:00
urls.py chore(deps): update pre-commit hook psf/black-pre-commit-mirror to v24 (#2917) 2024-02-02 20:24:25 +01:00
wsgi.py feat(api): split api into multiple apps (#1626) 2022-04-04 14:38:50 +02:00