< class="prominent-subhead ">

Integrating a REST-based Service with K2

This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

K2 allows you to interact with REST endpoints by using the REST SmartObject Broker to expose a particular REST endpoint as a service instance, create SmartObjects that utilize the service objects exposed by the service instance, and then optionally build SmartWizards (K2 blackpearl only) that exposes these SmartObjects as wizards so that workflow designers can easily drag and drop methods from the REST-based SmartObjects into their workflows.

This article demonstrates this integration with an end-to-end scenario that involves exposing REST Endpoints provided by the Swagger PetStore example as wizards that can be used in K2 workflow design tools.