curl --request POST \
--url https://api.example.com/products \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"stock": 123,
"price": 123,
"categoriesID": 123
}
'{
"error": true,
"msg": "<string>"
}Create a new product with name, description, stock, price, and category
curl --request POST \
--url https://api.example.com/products \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"stock": 123,
"price": 123,
"categoriesID": 123
}
'{
"error": true,
"msg": "<string>"
}This endpoint creates a new product in the system. All fields are required and must meet the validation requirements.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/andreguti9190/Sistema-de-gestion-de-ventas--Nodejs/llms.txt
Use this file to discover all available pages before exploring further.
{
"name": "Coca cola",
"description": "Bebida gasificada de 2ltr",
"stock": 40,
"price": 3000,
"categoriesID": 1
}
{
"error": true,
"msg": "request body is empty"
}
{
"error": true,
"msg": "information format is incorrect"
}
products.validation.js: