Adding IT for getPosts rest method