Implmenting restful API using sinatra to call virtual_min api