Documentation Documentation

REST Datasource

The REST DataSource is a base component of UDG to help you add existing REST APIs to your data graph. By attaching a REST datasource to a field the engine will use the REST resource for resolving.

To configure a REST datasource select the “DATA SOURCES” tab in the Schema editor. Select a field, e.g. the “httpBinGet” field in this example on the “Query” type. Finally on the right hand side select “DATA SOURCE” to configure the DataSource for this field.

Create New API

For REST DataSources you’re able to configure the URL, Method and the Headers. Based on the input, a REST resolver will be generated to resolve the field at runtime.

Create New API