curl --request POST \
--url https://api.example.com/api/product/inventory/add \
--header 'Content-Type: application/json' \
--data '
{
"productName": "<string>",
"category": "<string>",
"barcode": "<string>"
}
'{
"message": "<string>",
"productId": "<string>",
"productName": "<string>",
"category": "<string>"
}Add a new product to the inventory database
curl --request POST \
--url https://api.example.com/api/product/inventory/add \
--header 'Content-Type: application/json' \
--data '
{
"productName": "<string>",
"category": "<string>",
"barcode": "<string>"
}
'{
"message": "<string>",
"productId": "<string>",
"productName": "<string>",
"category": "<string>"
}POST /api/product/inventory/add
Authorization: Bearer <your_access_token>
add_product_to_inventory service function.
curl -X POST https://api.expireeye.com/api/product/inventory/add \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"productName": "Organic Milk",
"category": "Dairy",
"barcode": "123456789012"
}'
{
"message": "Product added successfully",
"productId": "550e8400-e29b-41d4-a716-446655440000",
"productName": "Organic Milk",
"category": "Dairy"
}