oko-management
    Preparing search index...

    Function getOneStandardizedResponse

    • Retrieves a single record from the API with standardized response handling.

      Type Parameters

      • T = any
      • U = any

      Parameters

      • apiUrl: string

        The URL of the API endpoint to fetch data from.

      • id: string | number

        The ID of the record to retrieve.

      • OptionalresponseFormatter: (variables: T) => U

      Returns Promise<{ data: any }>

      A promise that resolves to an object containing the fetched record.