Added near id endpoint and respective test cases [Finishes #80046206]