How to filter and get only published articles using GET call of article API
Posted May 05, 2022
How to apply filters in a GET call to article API to get the list of all published articles , draft field false implies article is published?
1
1
Posted May 05, 2022
How to apply filters in a GET call to article API to get the list of all published articles , draft field false implies article is published?
1
1 comment
Tipene Hughes
There isn't a specific filter for article publication status similar to the filters you'd see here, but one way you could go about this is looping over the results from your GET request and extracting the articles with a property
draft="false"
and save the articles to a new array.I hope this helps! Feel free to reach out with any questions.
Tipene
0
Sign in to leave a comment.