REST endpoints, commiting code for /estimate