Product Store

Use the search endpoint:

/api/products.php
/api/products.php?q=iphone

Use the purchase endpoint:

/api/purchase.php
example: curl -X POST https://store.yang.ca/api/purchase.php -H "Content-Type: application/json" -d '{"product_id": 2, "quantity": 1,  "customer": { "name": "John Doe", "email": "john@example.com" }}'