{"id":20992815,"url":"https://github.com/shnartho/go-serverless-api-gateway-dynamodb","last_synced_at":"2026-04-24T17:33:36.277Z","repository":{"id":204177846,"uuid":"711269943","full_name":"shnartho/go-serverless-api-gateway-dynamodb","owner":"shnartho","description":"A serverless web API project implemented in Golang, utilizing AWS API Gateway for endpoint management and DynamoDB.","archived":false,"fork":false,"pushed_at":"2023-10-29T13:54:42.000Z","size":7673,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T03:40:04.748Z","etag":null,"topics":["api-gateway","aws","dynamodb","golang","serverless"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shnartho.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-10-28T18:09:57.000Z","updated_at":"2023-10-29T14:00:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e31755f9-feca-4b57-8db3-4a25545a7e55","html_url":"https://github.com/shnartho/go-serverless-api-gateway-dynamodb","commit_stats":null,"previous_names":["shnartho/go-serverless-api-gateway-dynamodb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shnartho/go-serverless-api-gateway-dynamodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnartho%2Fgo-serverless-api-gateway-dynamodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnartho%2Fgo-serverless-api-gateway-dynamodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnartho%2Fgo-serverless-api-gateway-dynamodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnartho%2Fgo-serverless-api-gateway-dynamodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shnartho","download_url":"https://codeload.github.com/shnartho/go-serverless-api-gateway-dynamodb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnartho%2Fgo-serverless-api-gateway-dynamodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32234709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["api-gateway","aws","dynamodb","golang","serverless"],"created_at":"2024-11-19T07:12:50.917Z","updated_at":"2026-04-24T17:33:36.256Z","avatar_url":"https://github.com/shnartho.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-serverless-api-gateway-dynamodb\nThis repository contains a serverless web API project implemented in Golang, utilizing AWS API Gateway for endpoint management and DynamoDB for data storage. \n\n## Function Call Flow\n\nThe program is structured as follows:\n\n### Main.go\n\n- The program starts in `main.go`.\n- In `main.go`, it checks the HTTP method of the incoming request.\n  - If the HTTP method is \"GET,\" it calls `handlers.GetUser`.\n  - If the HTTP method is \"POST,\" it calls `handlers.CreateUser`.\n  - If the HTTP method is \"PUT,\" it calls `handlers.UpdateUser`.\n  - If the HTTP method is \"DELETE,\" it calls `handlers.DeleteUser`.\n  - For any other method, it calls `handlers.UnhandledMethod`.\n\n### Handlers Package\n\n- In the `handlers` package:\n  - `handlers.GetUser` calls functions in the `user` package to fetch user data.\n  - `handlers.CreateUser` calls functions in the `user` package to create a new user.\n  - `handlers.UpdateUser` calls functions in the `user` package to update a user's data.\n  - `handlers.DeleteUser` calls functions in the `user` package to delete a user.\n  - `handlers.UnhandledMethod` is a utility function to handle unsupported HTTP methods.\n\n### User Package\n\n- In the `user` package:\n  - `user.FetchUser` retrieves user data from a DynamoDB table.\n  - `user.FetchUsers` retrieves a list of users from the DynamoDB table.\n  - `user.CreateUser` creates a new user in the DynamoDB table.\n  - `user.UpdateUser` updates user data in the DynamoDB table.\n  - `user.DeleteUser` deletes a user from the DynamoDB table.\n\n### Validators Package\n\n- Additionally, the `validators` package is used to check if an email is valid or not.\n\n### ApiResponse Package\n\n- The `apiResponse` package is used to generate API responses with appropriate status codes and JSON bodies.\n\nThis structure outlines the flow of function calls in the program, starting from `main.go` and branching out to the functions in the `handlers`, `user`, `validators`, and `apiResponse` packages.\n\n![golang](https://fgp.dev/static/media/GolangDevelopmentBanner.aba7a1d6.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnartho%2Fgo-serverless-api-gateway-dynamodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshnartho%2Fgo-serverless-api-gateway-dynamodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnartho%2Fgo-serverless-api-gateway-dynamodb/lists"}