REST API: retrieve id only ids of relations

Take a look here: