oko-management
    Preparing search index...

    Function getListStandardizedResponse

    • Retrieves a list from the API with standardized response handling.

      Parameters

      • apiUrl: string

        The URL of the API endpoint to fetch data from.

      • params: GetListParams

        An object containing pagination, sorters, and filters for the request.

      Returns Promise<{ data: any; total: number }>

      A promise that resolves to an object containing the fetched data and total count.