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
}
"products"| Default | DAFF_PRODUCT_IN_MEMORY_COLLECTION_NAME |
|---|---|
| Description |
DaffProduct[]| Default | [] |
|---|---|
| Description |
DaffProduct[]| Default | – |
|---|---|
| Description | The collection of products in the backend. |
anyReturns products based on the url given.
| Parameter | reqInfo: any |
|---|---|
| Description | request object |