title: restful routes from flash builder http service
body: <p>I'm new to Flash Builder. I'm trying to access a RESTful url and manage the returned data. I'm using http data/services access and I have got a backend in Ruby on Rails.</p>
  
  <p>I found out that I should use curly brackets ({}) for the parameters in the url. For example <code>http://restfulService/{items}/{itemID}</code>
   then flex automaticaly makes the table with service parameters.
  <a href="http://s18.postimage.org/ihifv02qx/http.jpg" rel="nofollow">http://s18.postimage.org/ihifv02qx/http.jpg</a>
   Then in the application I get a function</p>
  
  <pre><code>protected function itemGrid_creationCompleteHandler(event:FlexEvent):void
  {
      ItemsIndexResult.token = items.ItemsIndex(/*Enter value(s) for */ items, itemID);   
  }
  </code></pre>
  
  <p>I'm a bit confused with the flex data service access. On every tutorial I found there where stict urls as strings. My question is how to store data from the http service call for example in datagrid by dataprovider when the url is restful. For example when user choose one type of items (kindofitem/1/item/1/item.xml) then they will be displayed in the grid and when the user chooses another type (kindofitem/2/item/1/item.xml), items with other type will be displayed. The difference between url in this two calls is just one parameter.</p>
  
  <p>I would be grateful for any explanation or clue.</p>