Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

In addition to exposing RESTful interfaces and mediating RESTful invocations by mapping REST concepts to SOAP via proxy services, you can use the WSO2 ESB REST API to configure REST endpoints in the ESB by directly specifying HTTP verbs , URL patterns, and URI templates(such as POST and GET), URI templates, and URL mappings. This page describes how you can use the REST API to handle the following use cases:

...

For information on securing APIs, see Securing REST APIs with Basic Auth.

Enabling REST to SOAP

In this scenario, you expose a SOAP service over REST using an ESB REST API.  

...

In the second resource, we have defined a the URL pattern mapping as "/order/*". Since this has POST as the HTTP method, the client has to send a payload to invoke this. Following is a sample cURL command to invoke this:

...

The context of the REST API is ‘/Starbucks_Service’. For every HTTP method, a url-mapping or urluri-template is defined, and the URL to call these the methods differ with the defined mapping or template.

...