MenuQL
MenuQL is MENU's proprietary menu query language. It was developed to offer a performant and efficient way to pull the menu. Using MenuQL you can specify which types of resources and specific attributes that you want to query. MenuQL also allows you to apply custom attribute filters and sorting, as well as to paginate results for a best-in-class menu experience.
To enable MenuQL (Query Builder), you need to send the X-QB-ENABLED HTTP header as true for all of your menu API calls.
Query Builder
Available query parameters
| Parameter | Value | Repeatable | Description |
|---|---|---|---|
| page | integer | FALSE |
Sets the page number of the queried results. Default value: Allowed values: any integer larger than Example: |
| per_page | integer | FALSE |
Sets the number of items to be returned per page of the queried results. Default value: Allowed values: any integer larger than Example: |
| paginated_results | boolean | FALSE |
If this parameter is included in the query and has value set to false, it will remove the pagination from the queried results and returns the collection of all items. Default value: Allowed values: Example: |
| include | string array |
FALSE |
Includes the attribute(s) ( Default value: Allowed values: defined for each entity specificly. Example: |
| sort[attribute_name] | string | TRUE |
Sorts the queried results by the Allowed attributes: defined for each entity specificly. Allowed values: Example: |
| filter[attribute_name] | boolean integer string array |
TRUE |
Filters out the queried results by the Allowed attributes: defined for each entity specificly. Allowed values: any. Example: |