Application Integration (On-Premises) : Creating REST applications : Setting Up Your REST Application : Converting an Existing Application
Converting an Existing Application
If you have an existing application that you want to transform into a REST application, one approach is to refactor your existing services into _get, _put, _post and _delete services. There is, however, another approach that might be faster and easier.
The invoke directive, like the rest directive, supports the GET, PUT, POST, and DELETE methods. For existing applications that use the invoke directive, you can update a service to call the pub.flow:getTransportInfo service and then perform a branch on /transport/http/method to execute the appropriate portions of your existing code, as in the following example:
Note, however, that if you use the invoke directive instead of the rest directive, you cannot take advantage of these REST-specific features:
*$resourceID pipeline variable
*$path pipeline variable
*_default service
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback