Need a guidance on pagination

I'm trying to use pagination but need a guidance on how to achieve pagination through rest endpoint?

I have 28 records. How to do it dynamically?

 const res = await api.get(`/m_attribute?form_id=eq.${id}&select=*&order=attr_id`, {
            headers: {
                "Authorization": `Bearer ${accessToken}`,
                "apikey": import.meta.env.VITE_SUPABASE_KEY,
                "Range":"0-5"
            }
        })
        return res.data
Was this page helpful?