Created resource api for products and categories