Advertisement

Joomla API Get request issue Topic is solved

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
brendanhedges
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 244
Joined: Sat Mar 04, 2017 1:28 am
Location: Surrey, UK
Contact:

Joomla API Get request issue

Post by brendanhedges » Sun Oct 06, 2024 8:44 pm

Hi,
I'm messing around with the Joomla API and have an issue that I can't seem to find an answer to.

I'm making a get request to the API to return a list of articles in a category: api/index.php/v1/content/articles?filter[category]=3

But, it's only returning the last 20 articles in the category.

Is there a query string or other endpoint for the url that will return all articles in the category?

I wondered if it was connected to the default list settings in global config, but it seems to make no difference.

Maybe it's connected to Joomla's pagination? Funny it's returning the last 20 which matches Joomla's standard list settings.

Regards, Brendan

Advertisement
brendanhedges
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 244
Joined: Sat Mar 04, 2017 1:28 am
Location: Surrey, UK
Contact:

Re: Joomla API Get request issue

Post by brendanhedges » Sun Oct 06, 2024 9:55 pm

I've found the solution with Pagination: page[offset] and page[limit]

Advertisement

Post Reply

Return to “Joomla! 5.x Coding”