GitHub

DaffInMemoryBackendProductService

import { DaffInMemoryBackendProductService } from '@daffodil/product/driver/in-memory'

An in-memory service that stubs out the backend services for getting products.

@Injectable()
class DaffInMemoryBackendProductService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: "products" = DAFF_PRODUCT_IN_MEMORY_COLLECTION_NAME
  protected _products: DaffProduct[] = []
  get products(): DaffProduct[]

  get(reqInfo: any): any
}

Properties

collectionName
"products"
DefaultDAFF_PRODUCT_IN_MEMORY_COLLECTION_NAME
Description
_products
DaffProduct[]
Default[]
Description
products
DaffProduct[]
Default
Description

The collection of products in the backend.

() Methods

get
any

Returns products based on the url given.

Parameters
ParameterreqInfo: any
Description

request object