curl --request POST \
--url https://api.example.com/categories \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"error": false,
"msg": "categorie was created sucessfully"
}
Create a new category by providing a name
curl --request POST \
--url https://api.example.com/categories \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"error": false,
"msg": "categorie was created sucessfully"
}
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.
POST /categories
{
"name": "bebidas"
}
{
"error": false,
"msg": "categorie was created sucessfully"
}
{
"error": true,
"msg": "request body is empty"
}
{
"error": true,
"msg": "categorie name is invalid"
}
{
"error": true,
"msg": "categorie name exist"
}