skinny-azureS
Refine3y ago
31 replies
skinny-azure

Resources with the same name on different APIs

Hello Refine community and maintainers! Thanks again for this awesome product, that really helps me to develop stuff faster than ever.

I have a very specific question regarding resources. We have two different data-providers (APIs) which both define an Endpoint called "Country". Now both APIs also have a resource called "Town" which has a "country_id" inside (foreign key relation). Is this something, that's possible at all with refine?

So far I have created a
parent
and
dataProviderName
attribute inside of the
meta
fields of the resource, but the default APIs (api1)
Country
is what is being referenced, when I am inside the
Country
for API (api2). This kind of makes sense as both of them are named
Country
.

The documentation says
A resource represents an entity in an endpoint in the API
but I don't see how I could narrow down this specific resource more.

Help is highly appreciated ✌️
Was this page helpful?