How to filter and get only published articles using GET call of article API



2022년 5월 05일에 게시됨

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

댓글 1개

      Hey, Bruce!
       
      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


      댓글을 남기려면 로그인하세요.

      원하는 정보를 못 찾으셨나요?

      새 게시물