-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Description
Currently all endpoints accept image_url. This should change so all endpoints accept file.
Task:
All services have methods that accept image_url, so they need be refactored to:
PATCH, POST methods:
- Accept file
- Store it in aws s3 bucket
- Write the url to the db model
- DELETE methods:
- Delete image from s3 bucket
- Delete db entry (currently implemented)
- Integration/ Unit tests need to be refactored !!!
Requirements:
- Use Stoyancho's Image Storing utility service
- DB models do not change, ONLY Request schemas
- There is proper validation for Image file:
- Accept .jpg, .png, .webp formats only
- Maximum file size: (expect update on that)
Reactions are currently unavailable