Career Point Gurukul Kota • Production API

E-Commerce Backend & Product Admin

Scalable Next.js backend with Firebase Admin SDK powering the Flutter mobile storefront and complete Product Management Admin Dashboard.

Next.js 14 Engine
Firebase Cloud Firestore
Admin Role Security

Health Status

Online

REST Endpoints

21 Active

Frontend App

Flutter Mobile

API Route Directory

Live API endpoints available for mobile and admin web services

Test /api/health
GET/api/health
API status & Firebase connection check
GET/api/products
List products with ?page, ?limit, ?search, ?categoryId, ?status, ?stockStatus, ?sortBy
POST/api/products
Create product in Firestore with auto-slug, discount & SKU (Admin)
GET/api/products/:id
Get single product details by ID
PUT/api/products/:id
Update existing product without overwriting unprovided fields (Admin)
DELETE/api/products/:id
Soft delete / archive product to Recycle Bin (Admin)
POST/api/products/:id/restore
Restore soft-deleted product back to active catalog (Admin)
PATCH/api/products/:id/status
Toggle product active/inactive status (Admin)
PATCH/api/products/:id/featured
Toggle featured flag for home screen carousel (Admin)
PATCH/api/products/:id/stock
Adjust inventory with IN/OUT/ADJUSTMENT logging (Admin)
POST/api/products/:id/duplicate
Clone product with unique ID, SKU and slug (Admin)
POST/api/products/upload
Upload product image to Firebase Storage (Admin)
GET/api/activity-logs
Audit trail of admin operations with JSON state diffs (Admin)
GET/api/inventory-logs
Full history of stock movements and restocks (Admin)
GET/api/categories
List all store categories with subcategories
POST/api/categories
Create or update category (Admin only)
GET/api/orders
Fetch orders by customer or store-wide (Admin)
POST/api/orders/create
Secure checkout & order placement with server validation
POST/api/orders/update-status
Order fulfillment workflow status updates
GET/api/metrics
Real-time revenue & sales KPI metrics (Admin)
POST/api/auth/set-admin-role
Grant custom admin claims to user accounts