import { DaffInMemoryBackendOrderService } from '@daffodil/order/driver/in-memory'
An in-memory service that stubs out the backend services for getting orders.
@Injectable()
class DaffInMemoryBackendOrderService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
readonly collectionName: "orders" = DAFF_ORDER_IN_MEMORY_COLLECTION_NAME
orders: DaffOrder[]
get(reqInfo: RequestInfo): any
post(reqInfo: RequestInfo): any
}
"orders"| Default | DAFF_ORDER_IN_MEMORY_COLLECTION_NAME |
|---|---|
| Description | The collection name of the backend service where the backend only serves one collection. Used for routing requests to the correct backend. |
DaffOrder[]| Default | – |
|---|---|
| Description |
anyResponds to GET requests.
| Parameter | reqInfo: RequestInfo |
|---|---|
| Description |
any| Parameter | reqInfo: RequestInfo |
|---|---|
| Description |