예제 #1
0
파일: rest.py 프로젝트: HengWang/openbmc
def psu_update_hdl():
    data = json.load(bottle.request.body)
    return rest_psu_update.begin_job(data)
예제 #2
0
 def helper_psu_update_hdl_post(self, request):
     data = self.get_data_from_generator(request.json())
     return web.json_response(rest_psu_update.begin_job(data),
                              dumps=dumps_bytestr)
예제 #3
0
 async def psu_update_hdl_post(self, request):
     data = await request.json()
     return web.json_response(rest_psu_update.begin_job(data))
예제 #4
0
def psu_update_hdl_post():
    data = json.load(bottle.request.body)
    return rest_psu_update.begin_job(data)
예제 #5
0
파일: rest.py 프로젝트: fwang1986/openbmc-1
def psu_update_hdl():
    data = json.load(request.body)
    return rest_psu_update.begin_job(data)