Completes implementation of /posts endpoint. starts implementation of /pages endpoint.