{"id":20771491,"url":"https://github.com/vertikajain/node-rest-api","last_synced_at":"2026-04-12T07:35:27.244Z","repository":{"id":164491844,"uuid":"308300805","full_name":"VertikaJain/node-rest-api","owner":"VertikaJain","description":"100 days of Code Challenge! REST APIs using Vanilla NodeJS. Reusable Repo for any collection of items.","archived":false,"fork":false,"pushed_at":"2020-10-30T04:37:29.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T16:02:31.684Z","etag":null,"topics":["json","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","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/VertikaJain.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-10-29T11:02:43.000Z","updated_at":"2020-11-20T11:14:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"eaf9159d-a62c-4553-81dc-1ed309b1ed73","html_url":"https://github.com/VertikaJain/node-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VertikaJain/node-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VertikaJain%2Fnode-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VertikaJain%2Fnode-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VertikaJain%2Fnode-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VertikaJain%2Fnode-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VertikaJain","download_url":"https://codeload.github.com/VertikaJain/node-rest-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VertikaJain%2Fnode-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31707953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["json","nodejs","rest-api"],"created_at":"2024-11-17T12:15:14.185Z","updated_at":"2026-04-12T07:35:27.227Z","avatar_url":"https://github.com/VertikaJain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vanilla NodeJS REST API\r\n\r\n- REST APIs functionality using Vanilla NodeJS (without the easier option - Express)\r\n- Since we cannot use `req.body` like in case of Express, I have used `req.on()` and `req.end()` events.\r\n- Use of Regular Expressions and split() to detect type of method to be used from the URL.\r\n- DB functionalities done using array built-in methods:\r\n  - find()\r\n  - push()\r\n  - findIndex()\r\n  - filter()\r\n- Utility file for updating DB (json file in this project) using fs.writeFileSync().\r\n\r\n## Status Codes\r\n- 200 is for OK\r\n- 201 is for Create\r\n- 300 is for Redirect\r\n- 400 is Bad Request\r\n- 404 is Not Found\r\n- 500 is for Server Errors\r\n\r\n## HTTP Methods used\r\n- GET\r\n- POST\r\n- PUT\r\n- DELETE\r\n\r\n## 3rd Party Libraries\r\n- nodemon\r\n- uuid\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertikajain%2Fnode-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvertikajain%2Fnode-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertikajain%2Fnode-rest-api/lists"}