import { DaffCategoryServiceInterface } from '@daffodil/category/driver'
An interface for category service drivers.
interface DaffCategoryServiceInterface<V extends DaffGenericCategory<V> = DaffCategory, W extends DaffProduct = DaffProduct> {
get(categoryRequest: DaffCategoryIdRequest): Observable<DaffGetCategoryResponse<V, W>>
getByUrl(categoryRequest: DaffCategoryUrlRequest): Observable<DaffGetCategoryResponse<V, W>>
}
Observable<DaffGetCategoryResponse<V, W>>
Fetch a category by its ID.
Parameter | categoryRequest: DaffCategoryIdRequest |
---|---|
Description |
Observable<DaffGetCategoryResponse<V, W>>
Fetch a category by its associated URL.
Parameter | categoryRequest: DaffCategoryUrlRequest |
---|---|
Description |