Create API helper: add check_params() method

helps check if incoming params has require params and the params are not empty
def POST() inside api(): implement POST /polls