REST API: retrieve id only ids of relations

i have the same issue. any solution ?