What Are Service Connections?

A service connection provides basic information about a service, including connection details, properties, and the REST endpoints provided by the service.

You can create a service connection by:

Each of these mechanisms create a representation (metadata) of the external REST service, which is required for you to use the REST endpoints as data sources in your extension.

Let’s take a look at how you might use service connections in your extension:

When you define a service connection, you supply metadata for it that can include request and response payload structures in JSON, query and path parameters, headers, and so on. This metadata helps to shape the raw data that you get back from the REST call, to narrow the scope of the data that is returned.

When you create a new service connection, you must also create a new backend, unless you use an existing backend as part of the service connection. Backends provide a way to bundle common attributes across service connections into a single entity you can refer to later. For example, you could create a backend (perhaps called “myBackend”) with the URL and the authentication information, then create two service connections based on “myBackend” for /employee and /department resources.