Implements /posts, /pages and /drafts endpoints