added a basic way of handling a POST request for API calls now chaning to thrift