deep-jade
deep-jade17mo ago

Help newbie and need guideline to list data from self API (dataProvider)

Hi all, I am just installed RefineV4, just want to list my divisions in UI. I hit the error as my screen-cap showed that data are return but it said "No records/data found for resource". I just edited example resource "blog-posts" to "divisions". My Insomnia, http://localhost:4000/api/v1/divisions, works fine. Any ideas and guideline for my issue? Thank you all
5 Replies
kapa.ai
kapa.ai17mo ago
Hi @KFC Kenneth. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai17mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I can provide you with some guidance on how to list your divisions in the UI using Refine. First, make sure you have created the necessary components for listing your divisions, such as a DivisionList component. You can follow the example from the Simple Web Application Example with Refine (https://refine.dev/blog/simple-web-application-with-refine/) blog post:
resources={[
{
name: "divisions",
list: DivisionList,
// other components like create, show, edit if needed
meta: {
route: "admin/divisions",
},
},
]}
resources={[
{
name: "divisions",
list: DivisionList,
// other components like create, show, edit if needed
meta: {
route: "admin/divisions",
},
},
]}
Ensure that your data provider is correctly configured to fetch data from your API. You can refer to the Strapi v4 data provider (https://refine.dev/docs/advanced-tutorials/data-provider/strapi-v4) or Supabase data provider (https://refine.dev/docs/advanced-tutorials/data-provider/supabase) documentation for more information on setting up data providers. If you still encounter issues, it might be helpful to review the Refine documentation (https://refine.dev/docs) and blog posts (https://refine.dev/blog) for more examples and guidance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Simple Web Application Example with Refine | refine
Do you want to develop a web application quickly? You are at the right place!
Strapi-v4 | refine
refine supports the features that come with Strapi-v4.
Supabase | refine
Introduction
Overview | refine
What is refine?
Blog | refine
A Docusaurus powered blog!
kapa.ai
kapa.ai17mo ago
<@1064744337289789510> kapa.ai is still learning and improving, please let us how it did by reacting below
deep-jade
deep-jade17mo ago
No description
Omer
Omer17mo ago
Hey @KFC Kenneth, you can review our data provider tutorial at https://refine.dev/docs/tutorial/understanding-dataprovider/index/
1. Data Provider | refine
The data provider unit is optional for the tutorial and can be skipped to next unit - Adding CRUD PagesAdding CRUD PagesAdding CRUD PagesAdding CRUD PagesAdding CRUD Pages