Service based adapters
Service based adapters are created by referencing a service definition that defines REST endpoints. Endpoints defined in the service become operations of the adapter, and the parameters of the service and its endpoints become the properties of the adapter.
- Invoked in input or output cards in Link maps.
- Invoked in source, target or request nodes in Link flows.
- Used in embedded applications.
- Create or import a REST service using the service editor.
- Use the connector wizard to create a new connector, and then select the type as An adapter defined by a service.
- Select the service that defines the endpoints you want to expose as an adapter.
- Optionally, edit the properties and operations in the connector wizard. By default, all endpoints defined in the service are listed as operations. Select and delete any operations that you do not want to expose in the adapter.
- Click deploy to deploy the adapter to the Link server, or to any additional Link runtime servers.
Properties of an adapter can be defined to have values restricted by a list that is defined by the response of an endpoint call. For example, a property may be Object type and there is an endpoint in the service that provides the list of supported object types.
- In the endpoint definition in the service, define an enumeration response from the Advanced Options on the Success Response page.
- In the connector definition, select More Attributes for the property to which you want to associate an enumeration. You can then select the endpoint for which an enumeration response is defined in the Enumeration Endpoint attribute of the property.