resful api for post and user