UI Builder Custom REST Data Resource

V_ Tran
Kilo Expert

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.

2 REPLIES 2

Jordan McCann
Tera Contributor

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.

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.