Project

General

Profile

dev #2008

Updated by Ayat Rahman about 1 year ago

Review #### **Description:** 

 Implement the POST, PATCH step 1 API for uploading images (logo and featured image) and storing them in a CDN (e.g., Cloudinary, AWS S3). 

 #### **Tasks:** 

 1.    **Create Image Upload API:** 
    
     -     Define an endpoint for uploading images (e.g., `/api/tools/images`). 
 2.    **Upload to 3 routes & CDN:** 
    
     -     Upload the image to a CDN service (Cloudinary, AWS S3, etc.). 
 3.    POST /api/v1/ai-tool/bulk-create pull request. Validate batch efficiency, duplicate handling, and edge cases (e.g., large payloads, partial failures). Ensure consistent error responses. **Save Image URLs in Database:** 
    
     -     Save the image URLs in the database under the corresponding tool entry. 
 4.    **Return Image URL to Frontend:** 
    
     -     Return the uploaded image URL to the frontend for further use. 

 #### **Acceptance Criteria:** 

 -     Images are uploaded successfully to the CDN. 
 -     Image URLs are saved in the database correctly. 
 -     The uploaded image URLs are returned to the frontend.

Back