{"id":19201101,"url":"https://github.com/dabit3/api-gateway-lambda-in-various-runtimes","last_synced_at":"2025-11-17T15:28:25.167Z","repository":{"id":73190370,"uuid":"253921509","full_name":"dabit3/api-gateway-lambda-in-various-runtimes","owner":"dabit3","description":"Examples of serverless Lambda functions integrated with API Gateway and CORS enabled","archived":false,"fork":false,"pushed_at":"2020-04-10T20:49:51.000Z","size":6,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T22:54:11.917Z","etag":null,"topics":["aws","cors","dotnet","golang","java","serverless"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/dabit3.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":"2020-04-07T21:58:57.000Z","updated_at":"2022-04-06T22:20:21.000Z","dependencies_parsed_at":"2023-05-23T01:00:14.905Z","dependency_job_id":null,"html_url":"https://github.com/dabit3/api-gateway-lambda-in-various-runtimes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fapi-gateway-lambda-in-various-runtimes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fapi-gateway-lambda-in-various-runtimes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fapi-gateway-lambda-in-various-runtimes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dabit3%2Fapi-gateway-lambda-in-various-runtimes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dabit3","download_url":"https://codeload.github.com/dabit3/api-gateway-lambda-in-various-runtimes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253742077,"owners_count":21956950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","cors","dotnet","golang","java","serverless"],"created_at":"2024-11-09T12:36:39.075Z","updated_at":"2025-11-17T15:28:20.133Z","avatar_url":"https://github.com/dabit3.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Examples of various Lambda function integrations with API Gateway and CORS enabled\n\nWhy? When working with Lambda functions, there are various different things to take into consideration.\n\n- Is this function being invoked from an HTTP trigger?\n- Is this function using API Gateway?\n- Are you calling this function from a client-side application?\n- Are you running into CORS issues when fetching data from your Lambda function?\n\nIf you answered yes to these questions, then these copy-paste examples should help you to get up and running with many of the most popular runtimes.\n\nHere are the supported runtimes that I will be creating examples for:\n\n### Go\n\n[main.go](https://github.com/dabit3/api-gateway-lambda-in-various-runtimes/blob/master/main.go)\n\n### Python\n\n[index.py](https://github.com/dabit3/api-gateway-lambda-in-various-runtimes/blob/master/index.py)\n\n### .Net\n\n[handler.cs](https://github.com/dabit3/api-gateway-lambda-in-various-runtimes/blob/master/handler.cs)\n\n### NodeJS / JavaScript\n\n[index.js](https://github.com/dabit3/api-gateway-lambda-in-various-runtimes/blob/master/index.js)\n\n### Java\n\n[handler.java](https://github.com/dabit3/api-gateway-lambda-in-various-runtimes/blob/master/handler.java)\n\nCheck out [this serverless example](https://github.com/serverless/examples/tree/master/aws-java-simple-http-endpoint) for a full Java implementation\n\n## More examples\n\nFor more examples of Lambda integrations in different languages, check out the [Serverless Examples](https://github.com/serverless/examples)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabit3%2Fapi-gateway-lambda-in-various-runtimes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdabit3%2Fapi-gateway-lambda-in-various-runtimes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdabit3%2Fapi-gateway-lambda-in-various-runtimes/lists"}