added post, endpoints, tests