This is the ASP.NET Core 6 Web API backend for the Pharmacy POS System. It provides API endpoints for managing Brands, Categories, Products, Cart, and Orders.
- 📌 Product Management: CRUD operations for Brands, Categories, and Products.
- 🛒 Cart Management: Uses Session for storing cart data.
- 💳 Order Processing: Saves order details with selected payment method.
- 🔗 RESTful API: Secure and optimized endpoints for the Angular frontend.
- 🛠 CORS Enabled: Supports cross-origin requests.
git clone https://github.com/aminul-islam-niloy/Pharmacy_POS_System_API.git
Setup ConnectionStrings and update database.
Ensure you have the following installed:
cd Pharmacy_POS_System_API
dotnet run
Open your browser and navigate to:
http://localhost:7083/swagger/index.html
Method | Endpoint | Description |
---|---|---|
GET | /api/Brand |
Get all brands |
POST | /api/Brand |
Create a new brand |
DELETE | /api/Brand/{id} |
Delete a brand by ID |
Method | Endpoint | Description |
---|---|---|
GET | /api/Cart |
Get cart details |
POST | /api/Cart/AddToCart |
Add a product to the cart |
DELETE | /api/Cart/RemovefromCart/{productId} |
Remove a product from the cart |
Method | Endpoint | Description |
---|---|---|
GET | /api/Category |
Get all categories |
POST | /api/Category |
Create a new category |
DELETE | /api/Category/{id} |
Delete a category by ID |
Method | Endpoint | Description |
---|---|---|
POST | /api/Order/save-order |
Save an order |
GET | /api/Order/get-all-orders |
Retrieve all orders |
Method | Endpoint | Description |
---|---|---|
GET | /api/Product |
Get all products |
POST | /api/Product |
Add a new product |
GET | /api/Product/category/{categoryId} |
Get products by category ID |
DELETE | /api/Product/{id} |
Delete a product by ID |
GET | /api/Product/{id}/image |
Get product image by ID |
- ASP.NET Core 6
- Entity Framework Core (for database operations)
- SQL Server
- Swagger UI (for API testing)
This project is licensed under the MIT License.
For the Angular 18 Frontend, refer to its repository: Pharmacy POS System UI