{"id":20346827,"url":"https://github.com/jackjduggan/ds-serverless-ca1","last_synced_at":"2026-04-17T18:02:25.081Z","repository":{"id":207355117,"uuid":"719016857","full_name":"jackjduggan/ds-serverless-ca1","owner":"jackjduggan","description":" Implementation of a serverless REST API for the AWS platform. A CDK stack creates the infrastructure. The domain context of the API is movie reviews","archived":false,"fork":false,"pushed_at":"2023-11-26T20:57:54.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T15:48:38.216Z","etag":null,"topics":["aws","cdk","rest-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackjduggan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-15T09:18:03.000Z","updated_at":"2024-03-26T22:35:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ad07103-f709-4b04-8d6a-fce0376ae891","html_url":"https://github.com/jackjduggan/ds-serverless-ca1","commit_stats":null,"previous_names":["jackjduggan/ds-serverless-ca1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jackjduggan/ds-serverless-ca1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Fds-serverless-ca1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Fds-serverless-ca1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Fds-serverless-ca1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Fds-serverless-ca1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackjduggan","download_url":"https://codeload.github.com/jackjduggan/ds-serverless-ca1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackjduggan%2Fds-serverless-ca1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31939788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cdk","rest-api"],"created_at":"2024-11-14T22:14:09.644Z","updated_at":"2026-04-17T18:02:25.054Z","avatar_url":"https://github.com/jackjduggan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ServerlessREST Sddignment - Distributed Systems.\n\n__Name:__ .... Jack Duggan .....\n\nThis repository contains the implementation of a serverless REST API for the AWS platform. A CDK stack creates the infrastructure. The domain context of the API is movie reviews.\n\n### API endpoints.\n+ POST /movies/reviews - add a movie review.\n+ GET /movies/{movieId}/reviews - Get all the reviews for a movie with the specified id.\n+ GET /movies/{movieId}/reviews?minRating=n - Get all the reviews for the movie with the specified ID with a rating greater than the minRating.\n+ GET /movies/{movieId}/reviews/{reviewerName} - Get the review for the movie with the specified movie ID and written by the named reviewer.\n+ GET /movies/reviews/{reviewerName} - Get all the reviews written by a specific reviewer\n\nI spent substantial time trying to get both\nGET /movies/{movieId}/reviews/{year} \u0026 PUT /movies/{movieId}/reviews\nworking, but to no avail. The code is still project relevant, so I left it in, in case there are any marks available.\n\nAdded reviewRating attribute to schema for use with minRating.\n\nAJV validation.\n\n[Include screenshots from the AWS console (API Gateway service) that clearly show the deployed API ( have legible font size). ]\n\n![Alt text](image.png)\n\n### Authentication..\n\nDidn't get authentication working. Ran out of time.\n\n### Independent learning (If relevant).\n\nI followed tutorial at https://completecoding.io/typescript-translation-api/ in an attempt to get translate functionality working.\nUltimately, I couldn't get it to work after spending hours trying.\n\nI figured out how to get name + surname working for reviewerName in the URL.\nI found an article at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent that explained how to use \"decodeURIComponent\".\nconst reviewerName = event?.pathParameters?.reviewerNameMovie? decodeURIComponent(event?.pathParameters?.reviewerNameMovie) : undefined;\nBefore implementing this, reviewerName only worked when the provided string had no spaces i.e. \"bob\", but now it works for spaces i.e. \"Jack Duggan\".\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackjduggan%2Fds-serverless-ca1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackjduggan%2Fds-serverless-ca1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackjduggan%2Fds-serverless-ca1/lists"}