From 3b48c3331dd6fdd02bb0222502d5d16e5988a328 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Wed, 28 Jan 2026 20:54:37 -0800 Subject: [PATCH] Add menu list and MenuID filter to items.cfm API Returns active menus in response so mobile apps can show menu selector chips. Accepts optional MenuID param to filter items to a specific menu. Co-Authored-By: Claude Opus 4.5 --- api/menu/items.cfm | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/api/menu/items.cfm b/api/menu/items.cfm index 5b484ab..304b910 100644 --- a/api/menu/items.cfm +++ b/api/menu/items.cfm @@ -38,6 +38,12 @@ + + + + + + @@ -46,6 +52,7 @@ + @@ -82,10 +89,11 @@ + 0 @@ -93,6 +101,7 @@ (MenuStartTime IS NULL OR MenuEndTime IS NULL) OR (TIME(:currentTime) >= MenuStartTime AND TIME(:currentTime) <= MenuEndTime) ) + ORDER BY MenuSortOrder, MenuName ", { bizId: { value = BusinessID, cfsqltype = "cf_sql_integer" }, @@ -101,7 +110,19 @@ }, { datasource = "payfrit" } )> - + + + + + + + + + + @@ -510,7 +531,9 @@ "Items": rows, "COUNT": arrayLen(rows), "SCHEMA": newSchemaActive ? "unified" : "legacy", - "BRANDCOLOR": brandColor + "BRANDCOLOR": brandColor, + "Menus": menuList, + "SelectedMenuID": requestedMenuID })>