{"id":23530281,"url":"https://github.com/awsimaya/commentsapi","last_synced_at":"2026-05-04T07:34:13.896Z","repository":{"id":184521447,"uuid":"140747928","full_name":"awsimaya/CommentsAPI","owner":"awsimaya","description":"Creates a Serverless ASP.NET Web API using Amazon Comprehend services","archived":false,"fork":false,"pushed_at":"2018-09-24T02:35:56.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T03:29:22.466Z","etag":null,"topics":["aws","comprehend","csharp","netcore"],"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/awsimaya.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}},"created_at":"2018-07-12T18:00:41.000Z","updated_at":"2018-09-24T02:35:57.000Z","dependencies_parsed_at":"2023-07-28T20:23:21.223Z","dependency_job_id":null,"html_url":"https://github.com/awsimaya/CommentsAPI","commit_stats":null,"previous_names":["awsimaya/commentsapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsimaya%2FCommentsAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsimaya%2FCommentsAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsimaya%2FCommentsAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsimaya%2FCommentsAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awsimaya","download_url":"https://codeload.github.com/awsimaya/CommentsAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254142590,"owners_count":22021564,"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","comprehend","csharp","netcore"],"created_at":"2024-12-25T21:16:31.114Z","updated_at":"2026-05-04T07:34:08.875Z","avatar_url":"https://github.com/awsimaya.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What does this application do?\nThis project has a lambda function that takes a text string as input, identifies the sentiment of the text through Amazon Comprehend service. If the text is found to have a _NEGATIVE_ sentiment, it triggers a notification to a topic. All subscribers to that topic will receive the notification message.\n\n## Setup Instructions (for Visual Studio on Windows)\n* Clone the repository to your local machine\n* Create an IAM Role and attach the following policies to it\n    * ComprehendReadOnly\n    * AmazonSNSFullAccess\n* Open serverless.template file and update the _Role_ attribute with the ARN of the IAM Policy you created in the previous step\n* Build and make sure there are no build errors\n* Right click on the project name and select _Publish to AWS Lambda..._ from the context menu\n* Make sure the value for _ShouldCreateSNSTopic_ is set to true when you run the template for the first time and publish\n* Once completed successfully, you should be able to see a setup similar to this on the AWS Lambda console\n![API Setup](API.png)\n* Navigate to SNS home page on the AWS Console, you should be able to see a new topic called _CommentNotifier_ there\n* Create a new email subscription to the topic and set it up to receive emails\n* In your project, open CommentsController.cs and update the _TargetArn_ property with the ARN of the CommentNotifier topic from the AWS Console\n* Publish the template once again\n* You should be able to invoke the Lambda through the API Gateway using Postman or similar tools. If you send a negative text, the Lambda will sense it through AWS Comprehend and send you a notification through SNS\n\n\n## Here are some steps to follow to get started from the command line:\n\nOnce you have edited your template and code you can use the following command lines to deploy your application from the command line (these examples assume the project name is *CommentsAPI*):\n\nRestore dependencies\n```\n    cd \"CommentsAPI\"\n    dotnet restore\n```\n\nExecute unit tests\n```\n    cd \"CommentsAPI/test/CommentsAPI.Tests\"\n    dotnet test\n```\n\nDeploy application\n```\n    cd \"CommentsAPI/src/CommentsAPI\"\n    dotnet lambda deploy-serverless\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawsimaya%2Fcommentsapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawsimaya%2Fcommentsapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawsimaya%2Fcommentsapi/lists"}