¡Esta es una revisión vieja del documento!
body = {
page: 1,
size: 20,
searchsBy: [
{
key: 'identificacion',
operation: 'GREATER_THAN',
value: 0
}
],
ordersBy: [
{
column: 'identificacion',
direction: 'ASC'
}
]
};
getData(endpoint: string, baseUrl: string, params?: any, header?: any): void {
this.subscription = this.apiService.get<any[]>(endpoint, baseUrl, params, header).subscribe({
next: (data) => {
this.updateList(data);
},
error: (error) => {
console.error('Error fetching data:', error);
},
complete: () => {
this.subscription?.unsubscribe();
this.progressBarService.hide();
}
});
};
configTercero = {
baseUrl: this.baseUrl,
endpoint: "terceros/api/v1/consultar-terceros-paginado",
params: null,
headers: {
"Authorization": "Bearer corantioquia-prod"
},
body: this.body,
}