Added categories API with method, that receives list of all categories.