{"id":22374936,"url":"https://github.com/md-rejoyan-islam/ecommerce-api","last_synced_at":"2026-04-25T16:33:49.897Z","repository":{"id":238897085,"uuid":"797899419","full_name":"md-rejoyan-islam/ecommerce-api","owner":"md-rejoyan-islam","description":"The Multi-Vendor Ecommerce API is designed to support a marketplace where multiple vendors can sell their products.","archived":false,"fork":false,"pushed_at":"2025-08-04T07:00:34.000Z","size":1663,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-04T10:39:25.967Z","etag":null,"topics":["cloudinary","express","express-validator","jwt","mongodb","rest-api","wiston-logger"],"latest_commit_sha":null,"homepage":"https://tinyurl.com/k7tssj6c","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/md-rejoyan-islam.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,"zenodo":null}},"created_at":"2024-05-08T17:44:47.000Z","updated_at":"2025-08-04T07:00:37.000Z","dependencies_parsed_at":"2024-05-08T19:04:54.933Z","dependency_job_id":"50ab1dec-9637-49df-b682-c1b020f29013","html_url":"https://github.com/md-rejoyan-islam/ecommerce-api","commit_stats":null,"previous_names":["md-rejoyan-islam/ecommerce-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/md-rejoyan-islam/ecommerce-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/md-rejoyan-islam%2Fecommerce-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/md-rejoyan-islam%2Fecommerce-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/md-rejoyan-islam%2Fecommerce-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/md-rejoyan-islam%2Fecommerce-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/md-rejoyan-islam","download_url":"https://codeload.github.com/md-rejoyan-islam/ecommerce-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/md-rejoyan-islam%2Fecommerce-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["cloudinary","express","express-validator","jwt","mongodb","rest-api","wiston-logger"],"created_at":"2024-12-04T21:19:01.161Z","updated_at":"2026-04-25T16:33:49.890Z","avatar_url":"https://github.com/md-rejoyan-islam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Multi-Vendor Ecommerce API\r\n\r\n### DESCRIPTION\r\n\r\nThe Multi-Vendor Ecommerce API is designed to support a marketplace where multiple vendors can sell their products. Whether you’re building a platform for sellers or integrating with existing Ecommerce solutions, this API provides the necessary functionality.\r\n\r\n### Features\r\n\r\n- \u003cb\u003eBuyer Registration :\u003c/b\u003e\r\n  - Buyer can create accounts and log in securely.\r\n  - Easily find product by slug and give rewview.\r\n- \u003cb\u003eVendor Registration and Authentication:\u003c/b\u003e\r\n  - Vendors can create accounts and log in securely.\r\n  - Authentication tokens are generated for API requests.\r\n- \u003cb\u003eProduct Management:\u003c/b\u003e\r\n  - Vendors can add, update, and delete their products.\r\n  - Products include details such as name, description, price, and availability.\r\n\r\n### PACKAGES\r\n\r\n- Express\r\n- Express-validator\r\n- Mongoose\r\n- Multer\r\n- Nodemailer\r\n- Wintson Loger\r\n- JWT\r\n- Bcryptjs\r\n- Cookie-parser\r\n\r\n### API ENDPOINTS\r\n\r\n#### Auth\r\n\r\n| Method | Endpoint                   | Details                                              | Access        |\r\n| ------ | -------------------------- | ---------------------------------------------------- | ------------- |\r\n| POST   | /api/v1/auth/register      | Registers a new user                                 | Public        |\r\n| POST   | /api/v1/auth/activate      | Activates a user account after registration.         | Public        |\r\n| POST   | /api/v1/auth/login         | Logs in a user with validation and request limiter   | Public        |\r\n| GET    | /api/v1/auth/refresh-token | Refreshes the user's session token.                  | Public        |\r\n| POST   | /api/v1/auth/logout        | Logs out a user, requiring the user to be logged in. | Authenticated |\r\n| GET    | /api/v1/auth/me            | Retrieves the current logged-in user's information.  | Authenticated |\r\n\r\n#### Users\r\n\r\n| Method | Endpoint                             | Details                                     | Access              |\r\n| ------ | ------------------------------------ | ------------------------------------------- | ------------------- |\r\n| GET    | /api/v1/users/                       | Retrieves a list of all users.              | Admin Only          |\r\n| POST   | /api/v1/users/                       | Creates a new user.                         | Admin Only          |\r\n| PATCH  | /api/v1/users/ban-user/:id           | Bans a user by their ID.                    | Admin Only          |\r\n| PATCH  | /api/v1/users/unban-user/:id         | Unbans a user by their ID.                  | Admin Only          |\r\n| PATCH  | /api/v1/users/update-password/:id    | Updates a user's password by their ID.      |\r\n| GET    | /api/v1/users/forgot-password/:email | Initiates a password reset with email       | Admin, User, Seller |\r\n| PATCH  | /api/v1/users/reset-password         | Resets a user's password.                   | Admin, User, Seller |\r\n| GET    | /api/v1/users/:id                    | Retrieves a user's information by their ID. | Admin, User, Seller |\r\n| DELETE | /api/v1/users/:id                    | Deletes a user by their ID.                 | Admin, User, Seller |\r\n| PATCH  | /api/v1/users/:id                    | Updates a user's details by their ID.       | Admin, User, Seller |\r\n\r\n#### Brands\r\n\r\n| Method | Endpoint                   | Details                                    | Access        |\r\n| ------ | -------------------------- | ------------------------------------------ | ------------- |\r\n| GET    | /api/v1/brands/            | Retrieves a list of all brands.            | Public        |\r\n| POST   | /api/v1/brands/            | Creates a new brand.                       | Authenticated |\r\n| DELETE | /api/v1/brands/bulk-delete | Bulk deletes brands based on provided IDs. | Admin Only    |\r\n| GET    | /api/v1/brands/:slug       | Retrieves a brand by its slug              | Authenticated |\r\n| DELETE | /api/v1/brands/:id         | Deletes a brand by its ID                  | Authenticated |\r\n| PATCH  | /api/v1/brands/:id         | Updates a brand by its ID                  | Authenticated |\r\n\r\n#### Tags\r\n\r\n| Method | Endpoint           | Details                       | Access        |\r\n| ------ | ------------------ | ----------------------------- | ------------- |\r\n| GET    | /api/v1/tags/      | Retrieves a list of all tags. | Public        |\r\n| POST   | /api/v1/tags/      | Creates a new tag.            | Authenticated |\r\n| GET    | /api/v1/tags/:slug | Retrieves a tag by its slug.  | Authenticated |\r\n| DELETE | /api/v1/tags/:id   | Deletes a tag by its ID.      | Authenticated |\r\n| PATCH  | /api/v1/tags/:id   | Updates a tag by its ID.      | Authenticated |\r\n\r\n#### Categories\r\n\r\n| Method | Endpoint                 | Details                             | Access        |\r\n| ------ | ------------------------ | ----------------------------------- | ------------- |\r\n| GET    | /api/v1/categories/      | Retrieves a list of all categories. | Public        |\r\n| POST   | /api/v1/categories/      | Creates a new category.             | Authenticated |\r\n| GET    | /api/v1/categories/:slug | Retrieves a category by its slug.   | Admin Only    |\r\n| DELETE | /api/v1/categories/:id   | Deletes a category by its ID.       | Admin Only    |\r\n| PATCH  | /api/v1/categories/:id   | Updates a category by its ID.       | Admin Only    |\r\n\r\n#### Products\r\n\r\n| Method | Endpoint                                  | Details                                     | Access        |\r\n| ------ | ----------------------------------------- | ------------------------------------------- | ------------- |\r\n| GET    | /api/v1/products/                         | Retrieves a list of all products.           | Public        |\r\n| POST   | /api/v1/products/                         | Creates a new product.                      | Authenticated |\r\n| PATCH  | /api/v1/products/add-to-wishlist/:id      | Adds a product to the user's wishlist.      | User Only     |\r\n| PATCH  | /api/v1/products/remove-from-wishlist/:id | Removes a product from the user's wishlist. | User Only     |\r\n| GET    | /api/v1/products/:slug                    | Retrieves a product by its slug.            | Public        |\r\n| DELETE | /api/v1/products/:slug                    | Deletes a product by its slug.              | Authenticated |\r\n| PATCH  | /api/v1/products/:slug                    | Updates a product by its slug.              | Authenticated |\r\n\r\n### LINKS\r\n\r\n[API Documentation with Postman](https://documenter.getpostman.com/view/22735243/2sAYdcsCXT) \u003cbr/\u003e\r\n[API URL](https://tinyurl.com/k7tssj6c)\r\n\r\n### Contact\r\n\r\nFor questions or suggestions, feel free to reach out:\r\n\r\n- **Name**: Md Rejoyan Islam\r\n- **Email**: [rejoyanislam0014@gmail.com]\r\n- **LinkedIn**: [https://www.linkedin.com/in/md-rejoyan-islam/]\r\n- **Portfolio**: [https://md-rejoyan-islam.github.io/]\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmd-rejoyan-islam%2Fecommerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmd-rejoyan-islam%2Fecommerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmd-rejoyan-islam%2Fecommerce-api/lists"}