Task 3 - #2
Open
nextsukhorutchenko wants to merge 3 commits into
Open
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.
Links

Product Service API (GET /products): https://5y1h93nifb.execute-api.eu-west-1.amazonaws.com/prod/products
Product Service API (GET /products/{id}): https://5y1h93nifb.execute-api.eu-west-1.amazonaws.com/prod/products/7567ec4b-b10c-48c5-9345-fc73c48a80a0
Frontend CloudFront URL: https://ddiqx6yb3n1i1.cloudfront.net/
Backend: nextsukhorutchenko/aws-shop-backend#1
tasks (100% completion) in English:
Core Requirements (70/70 points):
✅ Backend Infrastructure: AWS CDK v2 project initialized with API Gateway and Lambda integrations.
✅ getProductsList Lambda: Successfully returns the full array of products (Status 200).
✅ getProductsById Lambda: Successfully retrieves a single product by its ID (Status 200).
✅ Frontend Integration: The deployed Frontend application (CloudFront) is successfully fetching and displaying data from your API Gateway.
✅ Frontend Code Fix: Updated 2 lines in src/queries/products.ts to use the new API endpoints.
Additional Points (+30 points):
✅ Swagger Documentation (+7.5): Created swagger.yaml (OpenAPI 3.0) file describing the API structure.
✅ Unit Testing (+7.5): Implemented Jest unit tests for all Lambda handlers, covering success and error cases.
✅ Code Separation (+7.5): Lambda handlers are organized into separate modules/files for better maintainability.
✅ Error Handling (+7.5): Implemented specific error handling for the "Product not found" scenario (Status 404).