{"id":18906704,"url":"https://github.com/farazf19/restapi_project1","last_synced_at":"2026-05-04T22:42:57.285Z","repository":{"id":248500746,"uuid":"828864981","full_name":"FarazF19/RESTAPI_Project1","owner":"FarazF19","description":"REST API Practice Project-1","archived":false,"fork":false,"pushed_at":"2024-07-20T08:21:17.000Z","size":3217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T12:52:02.055Z","etag":null,"topics":["backend","express-js","json","mockaroo","restapi"],"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/FarazF19.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":"2024-07-15T09:28:28.000Z","updated_at":"2024-07-20T08:21:20.000Z","dependencies_parsed_at":"2024-07-20T09:44:03.945Z","dependency_job_id":null,"html_url":"https://github.com/FarazF19/RESTAPI_Project1","commit_stats":null,"previous_names":["farazf19/restapi_project1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FarazF19/RESTAPI_Project1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarazF19%2FRESTAPI_Project1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarazF19%2FRESTAPI_Project1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarazF19%2FRESTAPI_Project1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarazF19%2FRESTAPI_Project1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FarazF19","download_url":"https://codeload.github.com/FarazF19/RESTAPI_Project1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FarazF19%2FRESTAPI_Project1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["backend","express-js","json","mockaroo","restapi"],"created_at":"2024-11-08T09:18:27.771Z","updated_at":"2026-05-04T22:42:57.271Z","avatar_url":"https://github.com/FarazF19.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# REST API Project\n\nThis project is a simple REST API for managing users, supporting CRUD operations. It utilizes MongoDB as the database and follows RESTful principles, with responses in JSON format. Through this project, I learned how to create a REST API, use MongoDB for database operations, and perform CRUD operations using the REST API. Additionally, I learned to use the MVC pattern and Postman to test the APIs. This project was a stepping stone towards learning Node.js.\n\n## Endpoints\n\n### Get All Users\n\n- **GET /api/users**\n- Retrieves a list of all users.\n\n### Get User by ID\n\n- **GET /api/users/:id**\n- Retrieves a user by their unique ID.\n\n### Create a New User\n\n- **POST /api/users**\n- Creates a new user.\n\n### Update a User by ID\n\n- **PATCH /api/users/:id**\n- Updates an existing user by their unique ID.\n\n### Delete a User by ID\n\n- **DELETE /api/users/:id**\n- Deletes a user by their unique ID.\n\n### Render HTML Document\n\n- **GET /users**\n- Renders an HTML document listing all users.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js\n- npm\n\n### Installing\n\n1. Clone the repository\n   ```bash\n   git clone https://github.com/FarazF19/RESTAPI_Project1.git\n   ```\n````\n\n2. Navigate to the project directory\n   ```bash\n   cd RESTAPI_Project1\n   ```\n3. Install dependencies\n   ```bash\n   npm install\n   ```\n\n### Running the Server\n\n```bash\nnpm start\n```\n\nThe server will start on `http://localhost:4000`.\n\n### Using the API\n\nUse tools like `curl`, `Postman`, or any REST client to interact with the API endpoints.\n\n## Authors\n\n- Faraz\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgements\n\nSpecial thanks to Piyush Gard for his YouTube tutorial series on Node.js which was instrumental in learning the concepts applied in this project. Check out his channel: [Piyush Gard YouTube Channel](https://www.youtube.com/watch?v=ohIAiuHMKMI\u0026list=PLinedj3B30sDby4Al-i13hQJGQoRQDfPo\u0026index=1)\n\n```\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarazf19%2Frestapi_project1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarazf19%2Frestapi_project1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarazf19%2Frestapi_project1/lists"}