Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 4 - AWS DynamoDB and Lambda Integration
Description
This PR implements Task 4 requirements, including creating and populating DynamoDB tables, extending the AWS CDK stack, integrating Lambda functions, and setting up API Gateway endpoints for interaction with the Product Service.
Implemented Features
✅ Task 4.1: Create DynamoDB Tables and Populate with Data
productsandstocks.link-to-script.✅ Task 4.2: Extend AWS CDK Stack and Implement Lambda Functions
getProductsListLambda to fetch products with stock information.getProductsByIdLambda to return a single product by ID.product_idto provide a single unified response./products→ [Invoke] (API-Gateway-URL-for-getProductsList)/products/{productId}→ [Invoke] (API-Gateway-URL-for-getProductsById)✅ Task 4.3: Implement
createProductLambdacreateProductLambda to add new products./products→ [Invoke](API-Gateway-URL-for-createProduct)✅ Task 4.4: Integration with Frontend Application
/productsAPI with the Frontend.Link to frontend](Frontend-Deployment-URL)Error Handling and Logging
How to Test
Fetch all products
Response Example:{ "description": "Organic plant-based protein.", "id": "e0c7c4c2-0e28-4b2e-8cbf-7a7344ca93ac", "price": 29, "title": "Vegan Protein Powder", "count": 10 }, { "description": "Organic plant-based protein.", "id": "123e4567-e89b-12d3-a456-426614174000", "price": 29, "title": "Vegan Protein Powder", "count": 50 }Fetch product by ID
curl -X GET https://pj8m5nmg5m.execute-api.us-east-1.amazonaws.com/prod/products/{productId}Response Example:{ "description": "Organic plant-based protein.", "id": "e0c7c4c2-0e28-4b2e-8cbf-7a7344ca93ac", "price": 29, "title": "Vegan Protein Powder", "count": 10 }Create a new product
curl -X POST https://pj8m5nmg5m.execute-api.us-east-1.amazonaws.com/prod/products/ -H "Content-Type: application/json" \ -d '{"title": "New Product", "description": "Test Description", "price": 150, "count": 10}'Submission Details
Link to Backend PR](Backend-Repo-PR-URL)Link to Frontend PR](Frontend-Repo-PR-URL)🚀 Ready for Review! Please let me know if you have any questions. 😊