Article sort on the news list
What's new
get_news_list no longer accepts the sort_field and
sort_order query parameters. They are replaced by a single optional article_sort parameter that
takes an ArticleSort value:
newest_first(default): by date, the most recent firstoldest_first: by date, the earliest firstmanual: in the order set by hand
The NewsSortField enum behind sort_field is gone from the spec.
Impact
The list is now ordered the same way a collection with that article sort orders its articles.
Sorting by slug, title, description, tags, or category is no longer available.
Changes
| Resource | Change |
|---|---|
| get_news_list | Removed sort_field and sort_order, added optional article_sort |
| Components | Removed the NewsSortField schema and added ArticleSort |
Upgrade
- Stop sending
sort_fieldandsort_order. - Send
article_sortinstead. Useoldest_firstwhere you sorted by date ascending andnewest_firstwhere you sorted by date descending. - If you generate clients from the spec, regenerate them. The
NewsSortFieldtype no longer exists.
Need help?
Contact our integration team at [email protected]