{"id":17650076,"url":"https://github.com/laudenlaruto/node-rest-api-test","last_synced_at":"2026-04-02T04:46:21.473Z","repository":{"id":93607864,"uuid":"125363217","full_name":"Laudenlaruto/Node-Rest-api-test","owner":"Laudenlaruto","description":"GitHub repository for AWS CodeStar Express.js web service node-rest.","archived":false,"fork":false,"pushed_at":"2018-03-18T11:52:14.000Z","size":183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T10:50:08.018Z","etag":null,"topics":["amazon-api-gateway","aws-cloudformation","aws-codebuild","aws-codestar","aws-lambda","expressjs","mongodb","mongoose","nodejs","yml"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Laudenlaruto.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":"2018-03-15T12:21:49.000Z","updated_at":"2018-03-18T13:53:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"824d40da-f734-4bd6-9bab-b8e8857a4f30","html_url":"https://github.com/Laudenlaruto/Node-Rest-api-test","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/Laudenlaruto%2FNode-Rest-api-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laudenlaruto%2FNode-Rest-api-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laudenlaruto%2FNode-Rest-api-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laudenlaruto%2FNode-Rest-api-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Laudenlaruto","download_url":"https://codeload.github.com/Laudenlaruto/Node-Rest-api-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296583,"owners_count":20754632,"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":["amazon-api-gateway","aws-cloudformation","aws-codebuild","aws-codestar","aws-lambda","expressjs","mongodb","mongoose","nodejs","yml"],"created_at":"2024-10-23T11:35:23.569Z","updated_at":"2025-12-30T20:04:01.243Z","avatar_url":"https://github.com/Laudenlaruto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to the AWS CodeStar - Lamda API with node.js and express\n------------\nThis sample code aims to test how CRUD API call work with node.js, express \u0026 AWS\n\nI built a simple API to manipulate notes, title and description.\nTechnologies used:\n  * AWS Codestar for pipeline integration\n  * AWS Lambda\n  * AWS API gateway\n  * Mongodb Atlas cloud database  \n\n# What's Here\n-----------\n\nThis sample includes:\n\n* README.md - this file\n* buildspec.yml - this file is used by AWS CodeBuild to package services for deployment to AWS Lambda\n* app.js - this file contains the Node.js code for the API logique\n* db.js - this file contaons the logique to connect to Mongodb database\n* index.js - this file contains the AWS Lambda handler code\n* template.yml - this file contains the AWS Serverless Application Model (AWS SAM) used\n  by AWS CloudFormation to deploy services to AWS Lambda and Amazon API Gateway.\n* tests/ - this directory contains unit tests for your application - not yet implemented\n\n# How to use it\n------------------\nChange **http://host** by the AWS endpoint and **note_id** with a note id.\n\n\n### To list all notes\n```\ncurl http://host/notes\n```\n\n### To list a single note\n```\ncurl http://host/note/note_id\n```\n\n### To create a note\n```\ncurl -d '{\"title\":\"Les misérables\", \"description\":\"Good book\"}' -H \"Content-Type: application/json\" -X POST http://host/note\n```\n\n### To update a note\n```\ncurl -d '{\"title\":\"Les misérables\", \"description\":\"Not so good of a book\"}' -H \"Content-Type: application/json\" -X PATCH http://host/note/note_id\n```\n\n### To delete a note\n```\ncurl -X DELETE http://host/note/note_id\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaudenlaruto%2Fnode-rest-api-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaudenlaruto%2Fnode-rest-api-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaudenlaruto%2Fnode-rest-api-test/lists"}