Skip to content

Implement Image Storing in Endpoints #1212

@georginikolov7

Description

@georginikolov7

Description

Currently all endpoints accept image_url. This should change so all endpoints accept file.

Image

Task:

All services have methods that accept image_url, so they need be refactored to:
PATCH, POST methods:

  1. Accept file
  2. Store it in aws s3 bucket
  3. Write the url to the db model
  • DELETE methods:
  1. Delete image from s3 bucket
  2. 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)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions