REST API
cURL
curl --request GET \ --url http://localhost:3002/api/v1/products \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": [ { "id": "prod_123", "sku": "PROD-001", "name": "Product Name", "price": 100000, "description": "<string>", "category": "electronics", "cost": 75000, "stock": 50, "status": "active", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ], "meta": { "page": 1, "limit": 20, "total": 150, "total_pages": 8 } }
Get list of products dengan pagination dan filtering
JWT Bearer token authentication
Page number
Items per page
x <= 100
Filter by category
Filter by status
active
inactive
Products list
true
Show child attributes
Was this page helpful?