Multilingual catalog
Products, categories, and brands support Arabic and English with active, featured, discount, and rating summary states.
This API powers a full e-commerce workflow, covering authentication, users, products, categories, brands, cart, addresses, coupons, and orders, with clear access levels for admins and sellers.
Products, categories, and brands support Arabic and English with active, featured, discount, and rating summary states.
The checkout flow now includes cart, addresses, governorates, coupons, and richer order details.
The current structure clearly separates user, seller, and super admin access with banning protection.
The admin dashboard and analytics endpoints now represent the latest management flow in the project.
Instead of the older limited documentation page, the current content now follows the real project structure and the latest UI additions.
The catalog now includes full brand management across both the API and dashboard.
Orders now support governorates and addresses, making the checkout flow closer to production behavior.
Coupon validation and management endpoints are now part of the flow shown on the page.
Dedicated seller routes are now represented without mixing them with super admin actions.
Verified-purchase reviews, approval workflow, and public review visibility are now part of the documented flow.
Product responses now expose price, discount amount, final price, and active discount timing logic.
The page now reflects not_banned protection and role-based middleware more accurately.
Summary and analytics endpoints for users, products, orders, and categories are now included.
The latest backend additions let customers submit verified reviews and let products expose live discount pricing without changing the existing product endpoints.
Customers can create one review per product after a completed purchase, optionally attach a variant, and wait for admin moderation before it becomes public.
POST /api/v1/products/{id}/reviews
PUT /api/v1/products/{id}/reviews
DELETE /api/v1/products/{id}/reviews
GET /api/v1/products/{id}/reviews
Products now calculate has_discount, discount_amount, and final_price inside the valid date range while preventing negative prices.
discount_type: percentage | fixed discount_value: number discount_start_at: nullable datetime discount_end_at: nullable datetime
{
"price": 500,
"final_price": 450,
"has_discount": true,
"average_rating": 4.5,
"reviews_count": 12
}
The landing page now mirrors the spirit of the dashboard that exists in the project, so the public entry screen no longer feels disconnected.
Quick stats, recent orders, users, products, and categories appear in one central owner view.
Products now include brand, primary image, featured state, and active state management.
Arabic and English category fields are now reflected with cleaner publishing and description states.
The current dashboard allows easier tracking, status updates, and richer order detail views.
These cards are based on the real routes in routes/api.php, not the old static documentation, so they match the latest project structure.
Register, login, update profile, logout, and account deletion endpoints.
Create a new account
Login with rate limiting applied
End the active session
Update the current user profile
Delete the current account
List users for super admin only
Browse products, categories, brands, and governorates through the current public catalog layer.
List public products
List public approved reviews for a product
Create a verified-purchase review
List current categories
List available brands
List governorates and shipping areas
Create a main product as super admin with optional discount fields
Update a main catalog product and pricing rules
Cart, addresses, coupons, and orders are now represented as one clearer checkout flow.
Load the current cart items
Add a product or variant to cart
Update quantity or item state
Manage shipping addresses
Validate a coupon code
Create a new order
Dedicated seller endpoints for products and orders without colliding with admin actions.
List seller products
Create a seller product
Update a seller product
Delete a seller product
Follow seller orders
Super admin actions now include analytics, role assignment, pending products, and advanced order control.
Load a system summary
List pending products
Activate a pending product
Approve or reject a product review
Assign a role to a user
Load all orders for admin review
Ban a user from protected routes
Short snippets to start testing the API quickly while keeping the page clean and readable.
BASE_URL=http://127.0.0.1:8000 API_PREFIX=/api/v1
POST /api/v1/login
{
"email": "owner@example.com",
"password": "secret"
}
Authorization: Bearer {token}
Accept: application/json
Direct links to the currently available project files and the dashboard entry point.
Download the available markdown documentation shipped with the project.
Download the ready-to-use Postman collection for quick endpoint testing.
Open the current dashboard login screen used in the project.