No Code Attached Yet
avatar bellu
bellu
19 Jan 2023

Is your feature request related to a problem? Please describe.

I'm trying to build a website using Joomla only for the REST API.

Describe the solution you'd like

After building a menu, how can i retrieve all of the menu items related to that menu?
I found this endpoint curl -X GET /api/index.php/v1/menus/{app}/items .
But in this way i'm going to retrieve all the menu items for the entire frontend.

avatar bellu bellu - open - 19 Jan 2023
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jan 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Jan 2023
avatar ReLater
ReLater - comment - 19 Jan 2023

I'm not an expert. Doesn't it work by adding ?filter[menutype]=mainmenu to the url? mainmenu as example for the menutype column from table #__menu

EDIT: Nope! menutype not in public function displayList() as filter yet.

avatar alikon
alikon - comment - 19 Jan 2023

we should introduce such new endpoint i think

avatar bellu
bellu - comment - 20 Jan 2023

@alikon so basically now, i can't filter anything with the REST API, right?

avatar alikon
alikon - comment - 20 Jan 2023

please test #39675

avatar Quy Quy - change - 20 Jan 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-01-20 13:54:34
Closed_By Quy
avatar Quy Quy - close - 20 Jan 2023
avatar bellu
bellu - comment - 23 Jan 2023

@alikon thanks for your implementation.
I Think that the filter should be implemented even for the modules.
Starting from a menu alias, there should be a way to retrieve all the modules associated; because at the moment it's a little bit tricky retrieve all the content associated to a menu item.

Should i open another issue? I don't want to go off topic.

avatar alikon
alikon - comment - 23 Jan 2023

yes please open a new issue and describe the feature

Add a Comment

Login with GitHub to post a comment