Exemplo n.º 1
0
def get_environment_by_id(row_id):
    dao          = EnvironmentDAO( Config.database['schema'] )
    environments = dao.get(row_id)

    return { "environments": environments.as_dict() }, 200
Exemplo n.º 2
0
def get_environments(count, start):
    dao          = EnvironmentDAO( Config.database['schema'] )
    environments = dao.get_all(count, start)

    return { "environments": convert_obj_list_to_dict_list(environments) }, 200