The products endpoint returns items available in the Rakcha online store. Each product record includes its name, price, and category.
List all products
Returns an array of all product objects. No query parameters are required.
Request
No request body or query parameters are needed.
curl --request GET \
--url https://rakcha.example.com/api/products \
--header 'Authorization: Bearer <token>'
Response fields
Returns a JSON array. Each element has the following fields:
Unique numeric identifier for the product.
The display name of the product.
The price of the product as a floating-point number. Always a positive value.
The product category (e.g., Snacks, Merchandise, Beverages).
Example response
[
{
"id": 1,
"name": "Large Popcorn",
"price": 5.50,
"category": "Snacks"
},
{
"id": 2,
"name": "Rakcha T-Shirt",
"price": 24.99,
"category": "Merchandise"
}
]