curl -X GET https://api.example.com/extra/get \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN"
{
"result": [
{
"id_extra": 1,
"name": "Silla Plástica",
"value_add": 5000,
"quantity": 50
},
{
"id_extra": 2,
"name": "Mesa Redonda",
"value_add": 8000,
"quantity": 20
},
{
"id_extra": 3,
"name": "Mantel",
"value_add": 3000,
"quantity": 100
}
]
}
Retrieve all available extras in the system
curl -X GET https://api.example.com/extra/get \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN"
{
"result": [
{
"id_extra": 1,
"name": "Silla Plástica",
"value_add": 5000,
"quantity": 50
},
{
"id_extra": 2,
"name": "Mesa Redonda",
"value_add": 8000,
"quantity": 20
},
{
"id_extra": 3,
"name": "Mantel",
"value_add": 3000,
"quantity": 100
}
]
}
access_token cookie.
curl -X GET https://api.example.com/extra/get \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN"
{
"result": [
{
"id_extra": 1,
"name": "Silla Plástica",
"value_add": 5000,
"quantity": 50
},
{
"id_extra": 2,
"name": "Mesa Redonda",
"value_add": 8000,
"quantity": 20
},
{
"id_extra": 3,
"name": "Mantel",
"value_add": 3000,
"quantity": 100
}
]
}