{"id":19340962,"url":"https://github.com/belovetech/user_app","last_synced_at":"2026-05-16T02:40:32.050Z","repository":{"id":111328022,"uuid":"592412761","full_name":"belovetech/user_app","owner":"belovetech","description":"A simple RESTful API that performs CRUD functionalities on user's data.","archived":false,"fork":false,"pushed_at":"2023-01-25T14:02:38.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T11:40:17.769Z","etag":null,"topics":["api","nodejs","rest-api","restful-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/belovetech.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":"2023-01-23T17:19:20.000Z","updated_at":"2023-04-09T09:43:34.000Z","dependencies_parsed_at":"2023-05-23T13:45:55.230Z","dependency_job_id":null,"html_url":"https://github.com/belovetech/user_app","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/belovetech%2Fuser_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belovetech%2Fuser_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belovetech%2Fuser_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belovetech%2Fuser_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/belovetech","download_url":"https://codeload.github.com/belovetech/user_app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240444007,"owners_count":19802147,"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":["api","nodejs","rest-api","restful-api"],"created_at":"2024-11-10T03:28:36.937Z","updated_at":"2026-05-16T02:40:27.021Z","avatar_url":"https://github.com/belovetech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# user_app\n\nUser_app is a simple RESTful API that performs CRUD functionalities on user's data.\n\n## Getting started\n\n### Installing Dependencies\n\nNodejs 16.18.0 Follow instructions to install the latest version of nodejs for your platform in the [nodejs](https://nodejs.org/en/docs/) docs\n\n### NPM Dependencies\n\nOnce you have your virtual environment setup and running, install dependencies by navigating to the /backend directory and running:\n\n`npm install`\nThis will install all of the required packages we selected within the package.json.\n\n### Key Dependencies\n\n[Express](http://expressjs.com/) is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications\n\n[Mongoose](https://mongoosejs.com/) provides a straight-forward, schema-based solution to model your application data. It includes built-in type casting, validation, query building, business logic hooks and more, out of the box.\n\n### Running the server\n\nFrom within the ./user_app directory\n`npm run dev` - development mode\n\n## API Reference\n\n### Getting Started\n\nBase URL: https://user-app-yfyx.onrender.com/api/v1/\n\n### API Endpoints\n\nGET /users General: Returns all users.\n\nSample: curl https://user-app-yfyx.onrender.com/api/v1/users/\n\n```JSON\n    {\n    \"status\": \"success\",\n    \"results\": 8,\n    \"data\": {\n        \"users\": [\n            {\n                \"_id\": \"5c8a1d5b0190b214360dc053\",\n                \"name\": \"Opeyemi Odebode\",\n                \"email\": \"odebode@user.io\",\n                \"photo\": \"user-3.jpg\",\n                \"role\": \"user\"\n            },\n            {\n                \"_id\": \"637a12b0d7f067212d269764\",\n                \"name\": \"Onu Victor\",\n                \"email\": \"onu@user.io\",\n                \"photo\": \"user-5.jpg\",\n                \"role\": \"user\"\n            },\n            {\n                \"_id\": \"637a130b04b3fc21ec8a30cb\",\n                \"name\": \"Okeowo Abdul-qudus\",\n                \"email\": \"okeowo@user.io\",\n                \"photo\": \"user-6.jpg\",\n                \"role\": \"user\"\n            }\n        ]\n    }\n}\n```\n\nGET /users/:id General: Returns user based on id.\n\nSample: curl https://user-app-yfyx.onrender.com/api/v1/users/637a0db02ad3631a74214773\n\n```JSON\n    {\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"637a0db02ad3631a74214773\",\n            \"name\": \"Abeeb Raheem\",\n            \"email\": \"admin1@user.io\",\n            \"photo\": \"user-1.jpg\",\n            \"role\": \"admin\",\n            \"__v\": 0\n        }\n    }\n}\n```\n\nPATCH /users/:id General: Returns updated data.\n\nSample: curl -d {\"name\": \"Okeowo Abdulqudus\"} https://user-app-yfyx.onrender.com/api/v1/users/63ceb99a03b75aee4ab3f556 -H \"Content-Type: application/json\" -X PATCH\n\n```JSON\n    {\n    \"status\": \"success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"63ceb99a03b75aee4ab3f556\",\n            \"name\": \"Okeowo Abdulqudus\",\n            \"email\": \"qudus@gmail.io\",\n            \"role\": \"user\",\n            \"__v\": 0\n        }\n    }\n}\n```\n\nDELETE /users/:id General: Returns null.\n\nSample: curl https://user-app-yfyx.onrender.com/api/v1/users/63ceb99a03b75aee4ab3f556 -H \"Content-Type: application/json\" -X DELETE\n\n```JSON\n    {\n    \"status\": \"success\",\n    \"data\": null\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelovetech%2Fuser_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelovetech%2Fuser_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelovetech%2Fuser_app/lists"}