Skip to content

feat: add import service API path for task 5 - #615

Open
Javlon999 wants to merge 1 commit into
EPAM-JS-Competency-center:mainfrom
Javlon999:task-5
Open

feat: add import service API path for task 5#615
Javlon999 wants to merge 1 commit into
EPAM-JS-Competency-center:mainfrom
Javlon999:task-5

Conversation

@Javlon999

Copy link
Copy Markdown

What was done?

  • Added Import Service API path to apiPaths.ts
  • Frontend can now request presigned URLs from the Import Service
  • Enables CSV file upload to S3 via the Import Service

Import Service API

Product Service API

Backend PR

How it works

  1. User selects a CSV file in the frontend
  2. Frontend calls /import?name=filename.csv to get a presigned URL
  3. Frontend uploads the file directly to S3 using the presigned URL
  4. S3 triggers the importFileParser Lambda to process the file

Product CSV Schema

title,description,price,count
Test Product,Test Description,100,5
Another Product,Another Description,200,10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant