Change upload and download url to be retrieved as a field of the MediaRecord type instead of needing a separate query.
How has this been tested?
Please describe the test strategy you followed.
[ ] automated unit test
[ ] automated integration test
[ ] automated acceptance test
[x] manual, exploratory test
No tests have been written for this as currently no tests exist at all for the media service and it wouldn't make sense to write them contained in this issue because this IT-REX-Platform/media_service#19 issue is also included in this sprint and doing everything at the same time makes more sense (it's not really feasible to test just this PR, as it is not self-contained).
Description of changes
Change upload and download url to be retrieved as a field of the MediaRecord type instead of needing a separate query.
How has this been tested?
Please describe the test strategy you followed.
No tests have been written for this as currently no tests exist at all for the media service and it wouldn't make sense to write them contained in this issue because this IT-REX-Platform/media_service#19 issue is also included in this sprint and doing everything at the same time makes more sense (it's not really feasible to test just this PR, as it is not self-contained).
Checklist before requesting a review
Checklist for reviewer