def put(self): pathelems = filter(lambda p: len(p) > 0, self.request.path.split("/")) if self.request.headers['Content-Type'] == "application/yaml": process_request(self, rapi, "add_rateplan_yaml", {'tenant_id' : pathelems[1], 'service_name' : pathelems[3] }) else: process_request(self, rapi, "add_rateplan_json", {'tenant_id' : pathelems[1], 'service_name' : pathelems[3] })
def index(): data = request.get_data() data = util.convert_to_json(data) response = util.process_request(data, datetime.datetime.now()) return response
def post(self): process_request(self, api, "register")
def get(self): pathelems = filter(lambda p: len(p) > 0, self.request.path.split("/") ) process_request(self, api, "get_tenant", {'tenant_id' : pathelems[1]})
def get(self): process_request(self, api, "list_tenants")
def put(self): pathelems = filter(lambda p: len(p) > 0, self.request.path.split("/")) process_request(self, bapi, "create_bill", {'tenant_id' : pathelems[1], 'account_no' : pathelems[3]})
def get(self): pathelems = filter(lambda p: len(p) > 0, self.request.path.split("/")) process_request(self, aapi, "get_account_json", {'tenant_id' : pathelems[1], 'account_no' : pathelems[3]})
def post(self): pathelems = filter(lambda p: len(p) > 0, self.request.path.split("/")) process_request(self, aapi, "add_account", {'tenant_id' : pathelems[1]})
def get(self): pathelems = filter(lambda p: len(p) > 0, self.request.path.split("/")) process_request(self, api, "get_service", {'tenant_id' : pathelems[1], 'service_name' : pathelems[3] })