Environment
Docker container
NocoBase 1.7.18
REST API plugin 1.7.18
I’m having a hard time understanding how to use the data from a REST API collection once it is built. I can’t seem to get any associations between a Main data source collection and a REST API data source collection. They just aren’t even available in the dropdowns for “Target collection” to choose when creating a relation/association field. For example, in this dropdown the collection name “Templates” from a REST API data source is not available.
Thanks ahead of time for any help…
Thanks for your question. Currently, associations between the main data source and external data sources such as REST API collections are not supported in NocoBase.
Do you know if this is high up on the roadmap? Without easy access to this data (workflow nodes, associations, etc) my project gets very complex, very fast.
If your goal is to fetch data from an external data source and use it as options, then it’s more suitable to extend a new select field type with options from an external API. This will be very easy after we release NocoBase 2.0.
I’m unclear about your comment “use it as options”.
I’m unable to use REST API data in any way within my project: data associations, query nodes (query looked correct, but data was not usable), workflows—both “Collection event” and “Post-action event” workflows didn’t have access to the collection or its fields for downstream nodes.
Are you specifically saying that if I wanted to use a few data points to create a “new select field type” automagically that 2.0 will have the functionality?
Sorry, just trying to understand for anyone else who reads this thread…