Added api endpoint and tests for buildings list.