UI Builder Custom REST Data Resource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 02:57 PM
Has anyone successfully added a custom REST data resource to UI Builder before? I'm able to add the REST data resource but for the last few hrs I couldn't figure out the correct JSON or String format for the REST DATA Broker "Parameters" field. My get REST API endpoint needs a 'groupid' parameter. So far I couldn't find any SN documentation on creating custom REST data resources.
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2022 01:33 PM
Is the API you are trying to create a secret or can you share what you have?
Instead of a resource can you get it to work with a script rest message? I believe you can then just pull that in via a data resource.
If you can share what you have I can maybe help you figure out how to get it to work in UI builder. I could give you more details, but my PDI is down right now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2022 07:42 AM
I simply want to call an existing scripted REST API endpoint from UIB. As far as I know, in UIB, you have to add a REST data resource instance which is a ' REST Data Broker' record to point to this existing REST endpoint.
The issue is I don't know the JSON format for the REST DATA Broker's Parameters field. Since my custom GET REST endpoint requires a parameter I believe I have to complete this field in order to expose this required parameter inside UIB so I can bind to a state or context prop.
Sorry, I can't share the actual API endpoint but it's just a standard endpoint created with the Scripted REST API. It pulls some data from a table.
Thanks.