fetching posts from REST api