Closed jaakkonakaza closed 2 months ago
What?
Adds the course image to the API.
Why?
We are planning to show the course image in the IntelliJ plugin, so I made it easier to access.
How?
Adds the image field to the CourseSerializer.
Remember to add or update unit tests for new features and changes.
What type of test did you run?
[ ] Accessibility test using the WAVE extension.
[ ] Django unit tests.
[ ] Selenium tests.
[ ] Other test. (Add a description below)
[x] Manual testing.
Tested the API with no course image, which returns "image": null
Tested a course with an image, which returned "image": "http://localhost:8000/media/public/course_instance_1/O12024Thumbnail.png"
Did you test the changes in
Think of what is affected by these changes and could become broken
Clean up your git commit history before submitting the pull request!
Description
What?
Adds the course image to the API.
Why?
We are planning to show the course image in the IntelliJ plugin, so I made it easier to access.
How?
Adds the image field to the CourseSerializer.
Testing
Remember to add or update unit tests for new features and changes.
What type of test did you run?
[ ] Accessibility test using the WAVE extension.
[ ] Django unit tests.
[ ] Selenium tests.
[ ] Other test. (Add a description below)
[x] Manual testing.
Tested the API with no course image, which returns "image": null
Tested a course with an image, which returned "image": "http://localhost:8000/media/public/course_instance_1/O12024Thumbnail.png"
Did you test the changes in
Think of what is affected by these changes and could become broken
Translation
Programming style
Have you updated the README or other relevant documentation?
Is it Done?
Clean up your git commit history before submitting the pull request!