add model api with get/post methods