Question about functionality
-
gigi75
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 8
-
Thank you received: 0
-
-
9 years 4 weeks ago #4408
by gigi75
Hi,
content module apis "Get the list of articles" and "Get the list of articles by tag id" have two following parameters:
limit=<L> (optional)
offset=<O> (optional)
Which is their use? How do they work together?
Second question. Is it possible to limit fields in the json response file? I mean, If I request 10 articles with a query, I don't want in the response the content of the article, but I want only for example title and image. Because I have to show only a list of articles. In a second moment if user click over an article I will request the content of this article. Is it possible?
Thanks
gg
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 3 weeks ago #4410
by admin
Hi,
limit and offset are used for pagination. They are exactly the same as Joomla params for pagination.
About the second question, in the new content module (which will be release soon) there will be a plugin option to include or not the content in the response (reducing the data returned in lists).
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.136 seconds