JOIN implementation in apartments API. Details view fixed. Apartments template fixed.