automatic build restful api for your struct