{"id":23678581,"url":"https://github.com/erickgbr/rest-server","last_synced_at":"2026-05-01T17:35:56.796Z","repository":{"id":196773028,"uuid":"691410092","full_name":"ErickGBR/REST-Server","owner":"ErickGBR","description":"REST server with Node.js","archived":false,"fork":false,"pushed_at":"2023-09-27T02:51:05.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T09:43:16.334Z","etag":null,"topics":["express","express-middleware","expressjs","node","node-js","nodejs","rest","rest-api","rest-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErickGBR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-14T06:01:55.000Z","updated_at":"2023-09-27T02:54:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d648691-5806-4b82-b91d-60b3ddb32f4b","html_url":"https://github.com/ErickGBR/REST-Server","commit_stats":null,"previous_names":["erickgbr/rest-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ErickGBR/REST-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2FREST-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2FREST-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2FREST-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2FREST-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErickGBR","download_url":"https://codeload.github.com/ErickGBR/REST-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2FREST-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32507091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["express","express-middleware","expressjs","node","node-js","nodejs","rest","rest-api","rest-server"],"created_at":"2024-12-29T15:33:41.692Z","updated_at":"2026-05-01T17:35:56.779Z","avatar_url":"https://github.com/ErickGBR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# REST Server with Node and Express\n\nThis is a Node.js and Express.js-based REST server project that provides an API for managing users. The server is started at the \"localhost:8080/api/user\" route and offers the following endpoints to interact with the user collection:\n\n## Prerequisites\n\nEnsure you have Node.js and npm (Node Package Manager) installed on your system before running this project. You can download and install them from [nodejs.org](https://nodejs.org/).\n\n## Installation\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/ErickGBR/REST-Server.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd REST-Server\n   ```\n\n3. Install the dependencies using npm:\n\n   ```bash\n   npm i\n   ```\n\n## Start the Server\n\nTo start the server, use the following command:\n\n```bash\nnpm start\n```\n\nThe server will run at `http://localhost:8080/api/user`.\n\n## Endpoints\n\nBelow are the available endpoints and corresponding HTTP verbs to interact with the user collection:\n\n### 1. Create a New User\n\n- **URL**: `/api/user`\n- **HTTP Verb**: POST\n- **Description**: Create a new user and add them to the user collection.\n- **Request Parameters**:\n  - `name`: User's name (string).\n  - `age`: User's age (integer).\n\n### 2. Get All Users\n\n- **URL**: `/api/user`\n- **HTTP Verb**: GET\n- **Description**: Retrieve the complete list of users.\n\n\n### 3. Update a User by ID\n\n- **URL**: `/api/user/:id`\n- **HTTP Verb**: PUT\n- **Description**: Update a specific user by their ID.\n- **Request Parameters**:\n  - `id`: User ID (string).\n- **Request Parameters** (any combination of the following):\n  - `name`: New user name (string).\n  - `age`: New user age (integer).\n\n### 4. Delete a User by ID\n\n- **URL**: `/api/user/:id`\n- **HTTP Verb**: DELETE\n- **Description**: Delete a specific user by their ID.\n- **Request Parameters**:\n  - `id`: User ID (string).\n\n### 6. Partially Update a User by ID\n\n- **URL**: `/api/user/:id`\n- **HTTP Verb**: PATCH\n- **Description**: Partially update a specific user by their ID.\n- **Request Parameters**:\n  - `id`: User ID (string).\n- **Request Parameters** (any combination of the following):\n  - `name`: New user name (string).\n  - `email`: New user email (string).\n  - `age`: New user age (integer).\n\n## Contributions\n\nIf you would like to contribute to this project, please follow these contribution guidelines:\n\n1. Fork the repository.\n2. Create a branch for your contribution.\n3. Make your changes and ensure that the tests pass.\n4. Submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n\nThank you for using this Node and Express REST server! If you have any questions or suggestions, please feel free to contact us.\n\n**Author:** Erick Burgos\n**Email:** erickburgos1519@gmail.com\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickgbr%2Frest-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferickgbr%2Frest-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickgbr%2Frest-server/lists"}