implemented REST structure. read all categories works