{"id":29688619,"url":"https://github.com/apsarawitharana/simple-rest-api","last_synced_at":"2026-04-08T16:31:49.014Z","repository":{"id":299354103,"uuid":"998961120","full_name":"ApsaraWitharana/Simple-Rest-API","owner":"ApsaraWitharana","description":"Whether you're a reviewer or just exploring the project, you’ll find everything you need to test and understand this backend system below.","archived":false,"fork":false,"pushed_at":"2025-06-16T05:12:14.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-23T05:44:30.474Z","etag":null,"topics":["authentication","express","mysql","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ApsaraWitharana.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-09T14:22:02.000Z","updated_at":"2025-06-16T05:12:17.000Z","dependencies_parsed_at":"2025-06-16T05:35:48.580Z","dependency_job_id":"89c4e1e3-7c88-4720-8859-66ab9a4f77b6","html_url":"https://github.com/ApsaraWitharana/Simple-Rest-API","commit_stats":null,"previous_names":["apsarawitharana/simple-rest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ApsaraWitharana/Simple-Rest-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FSimple-Rest-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FSimple-Rest-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FSimple-Rest-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FSimple-Rest-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApsaraWitharana","download_url":"https://codeload.github.com/ApsaraWitharana/Simple-Rest-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApsaraWitharana%2FSimple-Rest-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["authentication","express","mysql","nodejs","rest-api"],"created_at":"2025-07-23T05:37:51.614Z","updated_at":"2026-04-08T16:31:48.999Z","avatar_url":"https://github.com/ApsaraWitharana.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Simple REST API – Backend Developer Assignment\n\nWelcome! This is a simple yet robust REST API built with **Node.js** and **Express**, developed as part of the **Backend Developer (Node.js) Internship Assignment** for **Future Code Technology**.\n\nWhether you're a reviewer or just exploring the project, you’ll find everything you need to test and understand this backend system below.\n\n---\n\n## 📦 Features\n\n🔐 **User Functionality**  \n- User Registration  \n- User Login  \n*(Note: Authentication is not required for this task — open endpoints.)*\n\n📦 **Product Management (CRUD)**  \nEach product has the following attributes:  \n- `name` (String)  \n- `price` (Number)  \n- `quantity` (Number, optional)  \n- `description` (String, optional)  \n\n🗄️ **Database**:  \n- Connected to **MySQL** using the `mysql2` driver.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Node.js**\n- **Express.js**\n- **MySQL**\n- **dotenv** (for environment configs)\n- **helmet**, **cors**, **rate-limit** (for security \u0026 performance)\n- **Postman** – for API testing and documentation\n\n---\n\n## 📫 API Testing\n\nAll API endpoints can be tested using Postman via the link below:\n\n🔗 **[Postman API Collection – View Online](https://documenter.getpostman.com/view/35385905/2sB2x8EBSE)**\n\nYou can test endpoints such as:\n\n### 🧪 Product Endpoints:\n- `GET /api/products` – List products (with pagination and search)\n- `POST /api/products` – Create a product\n- `GET /api/products/:id` – View a product by ID\n- `PUT /api/products/:id` – Update a product\n- `DELETE /api/products/:id` – Delete a product\n\n### 👤 User Endpoints:\n- `POST /api/auth/register` – Register a new user\n- `POST /api/auth/login` – Login user *(no JWT or session – just simulated logic)*\n\n### 🩺 Health Check:\n- `GET /api/health` – Verify the API is up and running\n---\n\n## ⚙️ Getting Started Locally\n\nTo run the project on your machine:\n\n### 1. Clone the Repository\n```bash\nhttps://github.com/ApsaraWitharana/Simple-Rest-API.git\n```\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n\u003cdiv align=\"center\"\u003e\n\n#### This project is licensed under the [MIT License](LICENSE)\n\n#### © 2025 All Right Reserved, Designed By [Sachini Apsara](https://github.com/ApsaraWitharana)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsarawitharana%2Fsimple-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsarawitharana%2Fsimple-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsarawitharana%2Fsimple-rest-api/lists"}