{"id":25009235,"url":"https://github.com/shreyansh301/rest-api","last_synced_at":"2026-05-06T03:31:56.540Z","repository":{"id":275643815,"uuid":"926162974","full_name":"Shreyansh301/REST-API","owner":"Shreyansh301","description":"This is a simple REST API built using Express.js for managing users. It supports basic CRUD operations (Create, Read, Update, Delete) and stores data in a JSON file (MOCK_DATA.json).","archived":false,"fork":false,"pushed_at":"2025-02-03T19:06:57.000Z","size":1019,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T00:46:49.401Z","etag":null,"topics":["crud","delete","express-js","get","patch","post","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/Shreyansh301.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":"2025-02-02T17:44:56.000Z","updated_at":"2025-02-03T19:07:01.000Z","dependencies_parsed_at":"2025-02-03T20:20:15.966Z","dependency_job_id":"9c8d712e-996b-42b2-b089-7881d87a128e","html_url":"https://github.com/Shreyansh301/REST-API","commit_stats":null,"previous_names":["shreyansh301/rest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shreyansh301/REST-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shreyansh301%2FREST-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shreyansh301%2FREST-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shreyansh301%2FREST-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shreyansh301%2FREST-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shreyansh301","download_url":"https://codeload.github.com/Shreyansh301/REST-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shreyansh301%2FREST-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746655,"owners_count":24813575,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crud","delete","express-js","get","patch","post","rest-api"],"created_at":"2025-02-05T04:38:56.678Z","updated_at":"2026-05-06T03:31:56.492Z","avatar_url":"https://github.com/Shreyansh301.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express REST API for User Management\n\n REST API built using Express.js for managing users. It supports basic CRUD operations (Create, Read, Update, Delete) and stores data in a JSON file (MOCK_DATA.json).\n\n## Features\n- Get all users: Retrieve a list of all users.\n- Get a single user: Retrieve details of a specific user by ID.\n- Create a new user: Add a new user.\n- Delete a user: Remove a user from the database by ID.\n- Update a user: Modify details of an existing user by ID.\n\n## Technologies Used\nNode.js: Runtime environment.\n\nExpress.js: Web framework for building the API.\n\nJSON: Data storage format.\n\n## API Endpoints\n### Method: GET\nGet All Users\n```\nURL: /api/users\n```\nGet a Single User\n```\n/api/users/:id\n```\n### Screenshots\n\u003cimg width=\"1440\" alt=\"nodemon_started\" src=\"https://github.com/user-attachments/assets/54e19d25-b4a2-4f62-bf31-9d3877b6741f\" /\u003e\n\u003cimg width=\"1440\" alt=\"GET\" src=\"https://github.com/user-attachments/assets/6926f494-2c41-48c7-94d9-7b5f02b7cf88\" /\u003e\n\u003cimg width=\"1440\" alt=\"GET user by id\" src=\"https://github.com/user-attachments/assets/88848b7f-4522-4d64-a2b0-1dd7997115e0\" /\u003e\n\n### Method: POST\nCreate a New User\n```\n/api/users\n```\n### Screenshots\n\u003cimg width=\"1440\" alt=\"POST\" src=\"https://github.com/user-attachments/assets/51f0c40c-40ea-423d-858d-bffb7d3b2539\" /\u003e\n\u003cimg width=\"1440\" alt=\"POST_Updated\" src=\"https://github.com/user-attachments/assets/70548342-539c-4cd3-963a-e5cfcb63284d\" /\u003e\n\n### Method: DELETE\n```\nURL: /api/users/:id\n```\n### Screenshots\n\u003cimg width=\"1440\" alt=\"DELETE\" src=\"https://github.com/user-attachments/assets/09d086af-94cf-4b97-8fec-837a353e4598\" /\u003e\n\u003cimg width=\"1440\" alt=\"1002_deleted\" src=\"https://github.com/user-attachments/assets/24c97638-531c-4b7f-b8a2-277abbf30841\" /\u003e\n\n### Method: PATCH (Update a User)\n```\nURL: /api/users/:id\n```\n### Screenshots\n\u003cimg width=\"1440\" alt=\"PATCH\" src=\"https://github.com/user-attachments/assets/947541b6-3d91-4c83-9a80-1069221b3c59\" /\u003e\n\u003cimg width=\"1440\" alt=\"1003_updated\" src=\"https://github.com/user-attachments/assets/865027e5-765d-4bbf-9b3f-fd540778cc4b\" /\u003e\n\n## Contributing\nIf you'd like to contribute to this project, feel free to fork the repository and submit a pull request. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyansh301%2Frest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshreyansh301%2Frest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyansh301%2Frest-api/lists"}