Testing & Feature Flags
Postman collection, cURL examples, and configurable feature flags
Last updated: Feb 09, 2026
Testing & Feature Flags
Feature Flags
The API has configurable feature flags. Disabled features will return 404 or 403 responses.
| Feature | Default | Description |
|---|---|---|
wishlist | Enabled | Wishlist functionality |
reviews | Enabled | Product reviews and ratings |
coupons | Enabled | Coupon/discount code support |
gift_cards | Disabled | Gift card support (planned) |
loyalty_points | Disabled | Loyalty points system (planned) |
Postman Collection
Import the included Postman collection for testing:
packages/Cartxis/API/Vortex-API.postman_collection.jsonpackages/Cartxis/API/Vortex-API.postman_environment.json
cURL Examples
Register
curl -X POST http://localhost:8000/api/v1/auth/register \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"Test User","email":"test@example.com","password":"password123","password_confirmation":"password123","terms_accepted":true}'
Login
curl -X POST http://localhost:8000/api/v1/auth/login \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"email":"test@example.com","password":"password123"}'
Get Products
curl -X GET "http://localhost:8000/api/v1/products?per_page=10&category_id=5" \
-H "Accept: application/json"
Add to Cart
curl -X POST http://localhost:8000/api/v1/cart/add \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"product_id":5,"quantity":2}'