Customize rest api response levels (object vs id)

It has changed in the stable, but in v4 we have an entirely new population system coming that will give a lot of freedom and will be implemented in a very easy way.