frontend


frontend / api/suppliers/supplierListFetcher

api/suppliers/supplierListFetcher

File

supplierListFetcher.ts

Enterprise

  • Single API endpoint: GET /api/suppliers with pagination params
  • Tolerant of response envelope variations (plain array, Spring Page format)
  • Graceful error handling: returns empty page on network failure
  • Type-safe response structure

Variables

Functions