CentraSite Documentation : Runtime Governance with CentraSite : Important Considerations when Configuring REST or XML Virtual Services : Handling Virtual REST APIs with Multiple Resources : Scenario A
Scenario A
Consider you have a virtual REST API created using the current version of CentraSite, this API will have the Route to endpoint of the Straight-Through/Content-Based/Content-Based Routing action, by default, appended with a resource path tokenizer. The Route to endpoint assigned by CentraSite has the format <base-url>/${sys:resource_path}, where the resource_path is the same as the original resource URI defined in the API’s first resource definition.
Whenever you try to add a new resource to this API, the endpoint is automatically assigned and sent to Mediator for processing inside a Virtual Service Definition (VSD) in the prescribed format. At run time, when a HTTP request is received for the resource, that request will be sent to the endpoint dynamically substituted with the path variable. This dynamic substitution of the endpoint indicates that the REST interface is enhanced to support multiple resources.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback