Implemented getCategoriesAPI

Added methods for get categories