Is there an example of defining a resource that is an external API that you are querying from?
I'm trying to wrap my head around modeling a resource that is an external API. Should you even do that?
2 Replies
And if so, would you just model the arguments you need to pass in to query the API? or would you also model the response
To be more specific: I'm interfacing with an external read-only GraphQL API: https://indexer.xyz/api-explorer
In concept I just need to build some helpers functions to interface with the API. Which of course could be done in it's own module outside of Ash. But I'm curious if there is an "Ash" way of doing this.
👋 there are a few ways to do it, but the easiest one would be to use manual actions 🙂
IIRC there should be some guides on manual actions