Replace abstract model with image model
As agreed with @kmohrf, on 21 march, as part of the aep05
effort, I'm going to replace the current abstract ModelWithImageFields
with an real image model, that will be referenced by its ID in the Host
, Note
and Show
models.
Additionally, I'm adding an image endpoint to upload images. The endpoint will return the ID after an image is uploaded that can be referenced in the other models.
This should provide a clearer path to add images to the Host
, Note
and Show
models:
- Upload an image through the image. The response to the POST request with the image is the ID of the image in the database.
- Link the image to the
Host
,Note
orShow
by referencing the image ID while creating or updating the model.