01 March 2010 - 3.5 |
As described in the REST Services Overview, Resources are available as child items to a REST Service and contain either child resources or methods. Resources are created either when initially creating the REST Service or by selecting the "New Resource" option from the Service/Resource popup. Either way, the following dialog will be displayed:
The dialog has the following options:
The Extract Params button will parse the specified endpoint and try to extract query, matrix and template parameters from it. Also a hostname will be removed and a path components corresponding to the REST Services Base Path and containing Resources' path will be removed. For example specifying
http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=Madonna&output=xml
and pressing the Extract button will result in
As you can see, the host has been removed and query parameters have been extracted.
The following properties are available at the bottom left for a REST Resource:
Right-clicking a resource shows a popup with the following actions:
The REST Resource View is as follows:
The toolbar at the top contains an action to create a new request for this Resource together with a text field to edit the path of the Resource. The "Resource Parameters" tab contains all parameters for this resource as described in Parameters and Representations