rest api v1 for users and posts