Skip to main content
The products endpoint returns items available in the Rakcha online store. Each product record includes its name, price, and category.

List all products

GET /api/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:
id
integer
Unique numeric identifier for the product.
name
string
The display name of the product.
price
number
The price of the product as a floating-point number. Always a positive value.
category
string
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"
  }
]

Build docs developers (and LLMs) love