Restaurant - Meal Menu
MealMenuController_calculateIngredientsByMenuIds
POST
/restaurant/meal-menus/calculate-ingredients-by-ids
const url = 'https://api.inspow.tech/api/v1/restaurant/meal-menus/calculate-ingredients-by-ids';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"menu_ids":["507f1f77bcf86cd799439011","507f1f77bcf86cd799439012"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.inspow.tech/api/v1/restaurant/meal-menus/calculate-ingredients-by-ids \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "menu_ids": [ "507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012" ] }'Authorizations
Sección titulada «Authorizations »Request Body required
Sección titulada «Request Body required » Media type application/json
object
menu_ids
required
Array de IDs de menús para calcular ingredientes
Array<string>
Example
[ "507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012"]