REST Route Collection Editor

This topic describes the REST Route Collection Editor properties.

These properties can be used to add multiple routes for a Client Message.

Collection Editor Properties

Property NameDescription

Verb

Specifies the HTTP Verb to use to access the web method. The verb that can be applied to the web method using this option includes Get, Post, Put, and Delete.

The attribute [AcceptVerbs(“<Verb>”)] is applied to the web method.

ActionName

Specifies the ActionName (name of the web method), if using convention based routing.

The attribute [Action(“<ActionName>”)] is applied to the generated web method.

Note: ActionName cannot be used in conjunction with the Route property. If values for both are specified, then Route property is used.

Route

The Route property (along with optional value of RoutePrefix) fully specifies the URI of the web method. This property allows greater flexibility in specifying both the routing and the parameters in the URI.

The attribute [Route(“<Route>”)] is applied to the web method, where <Route> is the value from this property.

Note: Nodes in the Route are usually literal. If the nodes are enclosed in braces, they act as variable parameters.