How to populate all one level deep relations and one 2 level relation

I use to write all the attributes with qs library in js, not on the url directly