feat: Implement product management features including CRUD operations and UI components
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { IPaginatedResponse } from '@/core/models/service.model';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
@@ -10,8 +11,8 @@ export class SuppliersService {
|
||||
|
||||
private apiRoutes = SUPPLIERS_API_ROUTES;
|
||||
|
||||
getAll(): Observable<ISupplierResponse[]> {
|
||||
return this.http.get<ISupplierRawResponse[]>(this.apiRoutes.list());
|
||||
getAll(): Observable<IPaginatedResponse<ISupplierResponse>> {
|
||||
return this.http.get<IPaginatedResponse<ISupplierRawResponse>>(this.apiRoutes.list());
|
||||
}
|
||||
|
||||
getSingle(supplierId: string): Observable<ISupplierResponse> {
|
||||
|
||||
Reference in New Issue
Block a user