R
Refine

ask-any-question

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

Xxenial-black3/28/2023
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
Kkapa.ai3/28/2023
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:
Kkapa.ai3/28/2023
---------------------- 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!
Kkapa.ai3/28/2023
<@1064744337289789510> kapa.ai is still learning and improving, please let us how it did by reacting below
Xxenial-black3/28/2023
No description
OOmer3/28/2023
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

Looking for more? Join the community!

R
Refine

ask-any-question

Join Server
Recommended Posts
Migration to v4: genetic routesHi 👋 So I've started migrating to v4 (🥳). In v3 I had the `routerProvider` which generated the roAction-based (RPC-like) interactionsHi! I'm pretty new in the whole stack, so probably the question is noobish. I must implement a mix oauthentication and tokenoauthHi all How can I validate the Google authentication in my back-end? How do I verify the token? oauthPopulate selectfield from another form's resultHey guys, been using v4 for a while now and it's great so far. I have a question in something I wantSteps to use localhost as a data provider?How to use localhost as a data provider? I have a restfull api backend running, but changing the datEdit Page fetches the Data from the REST API, but doesn't populate the form fields.Hi, I'm trying to create a Edit form for my card. I'm using `useForm` . But it isn't populating the Hi, How can I access the URL parameter?Hi, I'm trying to access the URL parameter in the 1st SS. It'll be used to fetch data. I've tried `ucookieshi all I use useTable useForm and another hooks to get the data from the backend in the backend (nodHelp with "Failed to resolve '@refinedev/inferencer/mantine"?Hi, I'm trying to adapt Refine into an existing React project (bundled by Parcel). I'm struggling towhite screen only in iPhoneHello! The problem I have is when I open my site using the ngrok url on iPhone I see a white screenCLI is not generating page?So i use the cli to create resource, yes it does create component for the resource but not page? so Swizzle of DataProviderHey Refine-Team, when I want to swizzle DataProvider, the console just displays the option to swizzl