GitHub

DaffCategoryServiceInterface

An interface for category service drivers.

import { DaffCategoryServiceInterface } from '@daffodil/category/driver'
interface DaffCategoryServiceInterface<V extends DaffGenericCategory<V> = DaffCategory, W extends DaffProduct = DaffProduct> {
  get: Observable<DaffGetCategoryResponse<V, W>>
  getByUrl: Observable<DaffGetCategoryResponse<V, W>>
}

Properties

Name Type Description
get Observable<DaffGetCategoryResponse<V, W>>

Fetch a category by its ID.

getByUrl Observable<DaffGetCategoryResponse<V, W>>

Fetch a category by its associated URL.