Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surya-tamang/storeapi
StoreAPI is a RESTful API designed for managing users, products, and orders in a B2C e-commerce platform. It enables developers to build and manage e-commerce systems efficiently.
https://github.com/surya-tamang/storeapi
bcrypt cors expressjs mongodb mongoose multer nodejs nodemon
Last synced: 17 days ago
JSON representation
StoreAPI is a RESTful API designed for managing users, products, and orders in a B2C e-commerce platform. It enables developers to build and manage e-commerce systems efficiently.
- Host: GitHub
- URL: https://github.com/surya-tamang/storeapi
- Owner: surya-tamang
- Created: 2024-11-10T04:52:17.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-30T11:52:21.000Z (25 days ago)
- Last Synced: 2024-12-30T12:29:28.527Z (25 days ago)
- Topics: bcrypt, cors, expressjs, mongodb, mongoose, multer, nodejs, nodemon
- Language: JavaScript
- Homepage: https://storeapi.up.railway.app/
- Size: 14 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StoreAPI
StoreAPI is a RESTful API designed for managing users, products, and orders in a B2C e-commerce platform. It enables developers to build and manage e-commerce systems efficiently.
## Table of Contents
- [Overview](#overview)
- [API Endpoints](#api-endpoints)
- [Users](#users)
- [Products](#products)
- [Orders](#orders)
- [Usage](#usage)## Overview
StoreAPI provides endpoints for managing users, products, and orders within an e-commerce platform. It is designed to be easy to integrate and efficient for high-performance e-commerce systems.
## API Endpoints
### Users
Endpoints for managing users:
- **GET /api/user**
- Retrieves a list of all available users.
- **GET /api/user/profile**
- Retrieves details of a specific user by ID.
- **PUT /api/user/profile**
- Updates details of a specific user by ID.
- **DELETE /api/user/:id**
- Deletes a specific user by ID.
- **POST /api/user/login**
- Authenticates a user and returns a token.
- **POST /api/user/signup**
- Registers a new user.
- **POST /api/user/refreshToken**
- Refresh accesstoken.### Products
Endpoints for managing products:
- **GET /api/product**
- Retrieves a list of all available products.
- **GET /api/product/:id**
- Retrieves details of a specific product by ID.
- **POST /api/product**
- Adds a new product to the inventory.
- **PUT /api/product/:id**
- Updates details of a specific product by ID.
- **DELETE /api/product/:id**
- Deletes a specific product by ID.### Orders
Endpoints for managing orders:
- **GET /api/order**
- Retrieves a list of all orders.
- **GET /api/order/:id**
- Retrieves details of a specific order by ID.
- **POST /api/order**
- Places a new order.
- **DELETE /api/order/:id**
- Cancels a specific order by ID.## Usage
To interact with StoreAPI, make HTTP requests to the appropriate endpoints. Ensure that the necessary headers (such as `Content-Type: application/json`) and authentication tokens (where required) are included.