...
<http uri-template="URI Template" method="GET|POST|PUSHPATCH|PUT|DELETE" />
HTTP Endpoint Attributes
Attribute | Description |
---|---|
uri-template | The URI template that constructs the RESTful endpoint URL at runtime. |
method | The HTTP method to use during the invocation. |
Example
Code Block | ||
---|---|---|
| ||
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="HTTPEndpoint"> <http uri-template="http://localhost:8080/{uri.var.servicepath}/restapi/{uri.var.servicename}/menu?category={uri.var.category}&type={uri.var.pizzaType}" method="GET"> </http> </endpoint> |
...