Documentation Index
Fetch the complete documentation index at: https://mintlify.com/peLuis123/crypto-shop-backend/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/products
Creates a new product in the system. This endpoint requires admin authentication.Authentication
Required. Must include a valid JWT token in the Authorization header.Authorization
Admin role required. The authenticated user’s ID will be stored ascreatedBy.
Request Headers
Body Parameters
Product name
Detailed description of the product
Product price. Must be a positive number (>= 0)
Product category. Must be one of:
digital, physical, serviceAvailable stock quantity. Defaults to 0 if not provided
Image URL for the product. Defaults to null if not provided
Response
Success message
The created product object
Unique product identifier
Product name
Product description
Product price
Available stock quantity
Product category
Image URL for the product
ID of the admin user who created the product
Whether the product is active (default: true)
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update