write new post: restful api design